|
@@ -30,69 +30,11 @@ public class mcm {
|
|
}
|
|
}
|
|
return instance;
|
|
return instance;
|
|
}
|
|
}
|
|
- public void damageTool(Player player, short damage){
|
|
|
|
- if(player.getItemInHand().getTypeId() == 0)
|
|
|
|
- return;
|
|
|
|
- player.getItemInHand().setDurability((short) (player.getItemInHand().getDurability() + damage));
|
|
|
|
- if(player.getItemInHand().getDurability() >= getMaxDurability(mcm.getInstance().getTier(player), player.getItemInHand())){
|
|
|
|
- ItemStack[] inventory = player.getInventory().getContents();
|
|
|
|
- for(ItemStack x : inventory){
|
|
|
|
- if(x.getTypeId() == player.getItemInHand().getTypeId() && x.getDurability() == player.getItemInHand().getDurability()){
|
|
|
|
- x.setTypeId(0);
|
|
|
|
- x.setAmount(0);
|
|
|
|
- player.getInventory().setContents(inventory);
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- public Integer getTier(Player player){
|
|
|
|
- int i = player.getItemInHand().getTypeId();
|
|
|
|
- if(i == 268 || i == 269 || i == 270 || i == 271 || i == 290){
|
|
|
|
- return 1; //WOOD
|
|
|
|
- } else if (i == 272 || i == 273 || i == 274 || i == 275 || i == 291){
|
|
|
|
- return 2; //STONE
|
|
|
|
- } else if (i == 256 || i == 257 || i == 258 || i == 267 || i == 292){
|
|
|
|
- return 3; //IRON
|
|
|
|
- } else if (i == 283 || i == 284 || i == 285 || i == 286 || i == 294){
|
|
|
|
- return 1; //GOLD
|
|
|
|
- } else if (i == 276 || i == 277 || i == 278 || i == 279 || i == 293){
|
|
|
|
- return 4; //DIAMOND
|
|
|
|
- } else {
|
|
|
|
- return 1; //UNRECOGNIZED
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- public Integer getMaxDurability(Integer tier, ItemStack item){
|
|
|
|
- int id = item.getTypeId();
|
|
|
|
- if(tier == 1){
|
|
|
|
- if((id == 276 || id == 277 || id == 278 || id == 279 || id == 293)){
|
|
|
|
- return 33;
|
|
|
|
- } else {
|
|
|
|
- return 60;
|
|
|
|
- }
|
|
|
|
- } else if (tier == 2){
|
|
|
|
- return 132;
|
|
|
|
- } else if (tier == 3){
|
|
|
|
- return 251;
|
|
|
|
- } else if (tier == 4){
|
|
|
|
- return 1562;
|
|
|
|
- } else {
|
|
|
|
- return 0;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- public double getDistance(Location loca, Location locb)
|
|
|
|
|
|
+ public static double getDistance(Location loca, Location locb)
|
|
{
|
|
{
|
|
- return Math.sqrt(Math.pow(loca.getX() - locb.getX(), 2) + Math.pow(loca.getY() - locb.getY(), 2)
|
|
|
|
|
|
+ return Math.sqrt(Math.pow(loca.getX() - locb.getX(), 2) + Math.pow(loca.getY() - locb.getY(), 2)
|
|
+ Math.pow(loca.getZ() - locb.getZ(), 2));
|
|
+ Math.pow(loca.getZ() - locb.getZ(), 2));
|
|
}
|
|
}
|
|
- public boolean abilityBlockCheck(Block block){
|
|
|
|
- int i = block.getTypeId();
|
|
|
|
- if(i == 68 || i == 355 || i == 323 || i == 25 || i == 54 || i == 69 || i == 92 || i == 77 || i == 58 || i == 61 || i == 62 || i == 42 || i == 71 || i == 64 || i == 84 || i == 324 || i == 330){
|
|
|
|
- return false;
|
|
|
|
- } else {
|
|
|
|
- return true;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
public boolean isBlockAround(Location loc, Integer radius, Integer typeid){
|
|
public boolean isBlockAround(Location loc, Integer radius, Integer typeid){
|
|
Block blockx = loc.getBlock();
|
|
Block blockx = loc.getBlock();
|
|
int ox = blockx.getX();
|
|
int ox = blockx.getX();
|
|
@@ -144,7 +86,7 @@ public class mcm {
|
|
}
|
|
}
|
|
public boolean shouldBeWatched(Block block){
|
|
public boolean shouldBeWatched(Block block){
|
|
int id = block.getTypeId();
|
|
int id = block.getTypeId();
|
|
- if(id == 87 || id == 89 || id == 2 || id == 3 || id == 12 || id == 13 || id == 21 || id == 15 || id == 14 || id == 56 || id == 38 || id == 37 || id == 39 || id == 40 || id == 24){
|
|
|
|
|
|
+ if(id == 21 || id == 15 || id == 14 || id == 56 || id == 38 || id == 37 || id == 39 || id == 40){
|
|
return true;
|
|
return true;
|
|
} else {
|
|
} else {
|
|
return false;
|
|
return false;
|
|
@@ -187,6 +129,70 @@ public class mcm {
|
|
}
|
|
}
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
+ public void simulateNaturalDrops(Entity entity){
|
|
|
|
+ Location loc = entity.getLocation();
|
|
|
|
+ if(entity instanceof Pig){
|
|
|
|
+ if(Math.random() * 3 > 2){
|
|
|
|
+ if(Math.random() * 2 > 1){
|
|
|
|
+ mcDropItem(loc, 319); //BACON
|
|
|
|
+ }
|
|
|
|
+ mcDropItem(loc, 319);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(entity instanceof Spider){
|
|
|
|
+ if(Math.random() * 3 > 2){
|
|
|
|
+ if(Math.random() * 2 > 1){
|
|
|
|
+ mcDropItem(loc, 287); //SILK
|
|
|
|
+ }
|
|
|
|
+ mcDropItem(loc, 287);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(entity instanceof Skeleton){
|
|
|
|
+ if(Math.random() * 3 > 2){
|
|
|
|
+ if(Math.random() * 2 > 1){
|
|
|
|
+ mcDropItem(loc, 262); //ARROWS
|
|
|
|
+ }
|
|
|
|
+ mcDropItem(loc, 262);
|
|
|
|
+ }
|
|
|
|
+ if(Math.random() * 3 > 2){
|
|
|
|
+ if(Math.random() * 2 > 1){
|
|
|
|
+ mcDropItem(loc, 352); //BONES
|
|
|
|
+ }
|
|
|
|
+ mcDropItem(loc, 352);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(entity instanceof Zombie){
|
|
|
|
+ if(Math.random() * 3 > 2){
|
|
|
|
+ if(Math.random() * 2 > 1){
|
|
|
|
+ mcDropItem(loc, 288); //FEATHERS
|
|
|
|
+ }
|
|
|
|
+ mcDropItem(loc, 288);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(entity instanceof Cow){
|
|
|
|
+ if(Math.random() * 3 > 2){
|
|
|
|
+ if(Math.random() * 2 > 1){
|
|
|
|
+ mcDropItem(loc, 334); //LEATHER
|
|
|
|
+ }
|
|
|
|
+ if(Math.random() * 2 > 1){
|
|
|
|
+ mcDropItem(loc, 334);
|
|
|
|
+ }
|
|
|
|
+ mcDropItem(loc, 334);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if(entity instanceof Squid){
|
|
|
|
+ if(Math.random() * 3 > 2){
|
|
|
|
+ if(Math.random() * 2 > 1){
|
|
|
|
+ mcDropItem(loc, 351); //INK SACS
|
|
|
|
+ }
|
|
|
|
+ if(Math.random() * 2 > 1){
|
|
|
|
+ mcDropItem(loc, 351);
|
|
|
|
+ }
|
|
|
|
+ mcDropItem(loc, 351);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ mcSkills.getInstance().arrowRetrievalCheck(entity);
|
|
|
|
+ }
|
|
public void mcDropItem(Location loc, int id){
|
|
public void mcDropItem(Location loc, int id){
|
|
if(loc != null){
|
|
if(loc != null){
|
|
Material mat = Material.getMaterial(id);
|
|
Material mat = Material.getMaterial(id);
|
|
@@ -203,13 +209,6 @@ public class mcm {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- public boolean isShovel(ItemStack is){
|
|
|
|
- if(is.getTypeId() == 269 || is.getTypeId() == 273 || is.getTypeId() == 277 || is.getTypeId() == 284 || is.getTypeId() == 256){
|
|
|
|
- return true;
|
|
|
|
- } else {
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
public boolean isAxes(ItemStack is){
|
|
public boolean isAxes(ItemStack is){
|
|
if(is.getTypeId() == 271 || is.getTypeId() == 258 || is.getTypeId() == 286 || is.getTypeId() == 279 || is.getTypeId() == 275){
|
|
if(is.getTypeId() == 271 || is.getTypeId() == 258 || is.getTypeId() == 286 || is.getTypeId() == 279 || is.getTypeId() == 275){
|
|
return true;
|
|
return true;
|
|
@@ -217,367 +216,106 @@ public class mcm {
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- public boolean isMiningPick(ItemStack is){
|
|
|
|
- if(is.getTypeId() == 270 || is.getTypeId() == 274 || is.getTypeId() == 285 || is.getTypeId() == 257 || is.getTypeId() == 278){
|
|
|
|
- return true;
|
|
|
|
- } else {
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
public void mcmmoHelpCheck(String[] split, Player player, PlayerChatEvent event){
|
|
public void mcmmoHelpCheck(String[] split, Player player, PlayerChatEvent event){
|
|
if(split[0].equalsIgnoreCase("/woodcutting")){
|
|
if(split[0].equalsIgnoreCase("/woodcutting")){
|
|
event.setCancelled(true);
|
|
event.setCancelled(true);
|
|
- float skillvalue = (float)mcUsers.getProfile(player).getWoodCuttingInt();
|
|
|
|
- int treefellticks = 2;
|
|
|
|
- if(mcUsers.getProfile(player).getWoodCuttingInt() >= 50)
|
|
|
|
- treefellticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getWoodCuttingInt() >= 150)
|
|
|
|
- treefellticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getWoodCuttingInt() >= 250)
|
|
|
|
- treefellticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getWoodCuttingInt() >= 350)
|
|
|
|
- treefellticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getWoodCuttingInt() >= 450)
|
|
|
|
- treefellticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getWoodCuttingInt() >= 550)
|
|
|
|
- treefellticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getWoodCuttingInt() >= 650)
|
|
|
|
- treefellticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getWoodCuttingInt() >= 750)
|
|
|
|
- treefellticks++;
|
|
|
|
- String percentage = String.valueOf((skillvalue / 1000) * 100);
|
|
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"WOODCUTTING"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"WOODCUTTING"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Chopping down trees");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Chopping down trees");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
- player.sendMessage(ChatColor.DARK_AQUA+"Tree Feller (ABILITY): "+ChatColor.GREEN+"Make trees explode");
|
|
|
|
- player.sendMessage(ChatColor.DARK_AQUA+"Double Drops: "+ChatColor.YELLOW+ChatColor.GREEN+"Double the normal loot");
|
|
|
|
- player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"YOUR STATS"+ChatColor.RED+"[]---");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Double Drop Chance: "+ChatColor.YELLOW+percentage+"%");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Tree Feller Length: "+ChatColor.YELLOW+(treefellticks * 2)+"s");
|
|
|
|
|
|
+ player.sendMessage(ChatColor.DARK_AQUA+"Double Drops: "+ChatColor.GREEN+"Double the normal loot");
|
|
}
|
|
}
|
|
if(split[0].equalsIgnoreCase("/archery")){
|
|
if(split[0].equalsIgnoreCase("/archery")){
|
|
event.setCancelled(true);
|
|
event.setCancelled(true);
|
|
- Integer rank = 0;
|
|
|
|
- if(mcUsers.getProfile(player).getArcheryInt() >= 50)
|
|
|
|
- rank++;
|
|
|
|
- if(mcUsers.getProfile(player).getArcheryInt() >= 250)
|
|
|
|
- rank++;
|
|
|
|
- if(mcUsers.getProfile(player).getArcheryInt() >= 575)
|
|
|
|
- rank++;
|
|
|
|
- if(mcUsers.getProfile(player).getArcheryInt() >= 725)
|
|
|
|
- rank++;
|
|
|
|
- if(mcUsers.getProfile(player).getArcheryInt() >= 1000)
|
|
|
|
- rank++;
|
|
|
|
- float skillvalue = (float)mcUsers.getProfile(player).getArcheryInt();
|
|
|
|
- String percentage = String.valueOf((skillvalue / 1000) * 100);
|
|
|
|
- String percentagefire = String.valueOf((skillvalue / 1500) * 100);
|
|
|
|
- String percentagedaze;
|
|
|
|
- if(mcUsers.getProfile(player).getArcheryInt() < 1000){
|
|
|
|
- percentagedaze = String.valueOf((skillvalue / 2000) * 100);
|
|
|
|
- } else {
|
|
|
|
- percentagedaze = "50";
|
|
|
|
- }
|
|
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"ARCHERY"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"ARCHERY"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Attacking Monsters");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Attacking Monsters");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
- player.sendMessage(ChatColor.DARK_AQUA+"Ignition: "+ChatColor.GREEN+"Enemies will catch on fire");
|
|
|
|
|
|
+ //player.sendMessage(ChatColor.DARK_AQUA+"Daze (Monsters): "+ChatColor.GREEN+"Enemies lose interest for 1 second");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Daze (Players): "+ChatColor.GREEN+"Disorients foes");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Daze (Players): "+ChatColor.GREEN+"Disorients foes");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Damage+: "+ChatColor.GREEN+"Modifies Damage");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Damage+: "+ChatColor.GREEN+"Modifies Damage");
|
|
- player.sendMessage(ChatColor.DARK_AQUA+"Arrow Retrieval: "+ChatColor.GREEN+"Chance to retrieve arrows from corpses");
|
|
|
|
- player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"YOUR STATS"+ChatColor.RED+"[]---");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Chance to Daze: "+ChatColor.YELLOW+percentagedaze+"%");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Chance to Retrieve Arrows: "+ChatColor.YELLOW+percentage+"%");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Chance for Ignition: "+ChatColor.YELLOW+percentagefire+"%");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Damage+ (Rank"+rank+"): Bonus "+rank+" damage");
|
|
|
|
}
|
|
}
|
|
if(split[0].equalsIgnoreCase("/axes")){
|
|
if(split[0].equalsIgnoreCase("/axes")){
|
|
event.setCancelled(true);
|
|
event.setCancelled(true);
|
|
- String percentage;
|
|
|
|
- float skillvalue = (float)mcUsers.getProfile(player).getAxesInt();
|
|
|
|
- if(mcUsers.getProfile(player).getAxesInt() < 750){
|
|
|
|
- percentage = String.valueOf((skillvalue / 1000) * 100);
|
|
|
|
- } else {
|
|
|
|
- percentage = "75";
|
|
|
|
- }
|
|
|
|
- int ticks = 2;
|
|
|
|
- if(mcUsers.getProfile(player).getAxesInt() >= 50)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getAxesInt() >= 150)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getAxesInt() >= 250)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getAxesInt() >= 350)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getAxesInt() >= 450)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getAxesInt() >= 550)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getAxesInt() >= 650)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getAxesInt() >= 750)
|
|
|
|
- ticks++;
|
|
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"AXES"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"AXES"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Attacking Monsters");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Attacking Monsters");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
- player.sendMessage(ChatColor.DARK_AQUA+"Skull Splitter (ABILITY): "+ChatColor.GREEN+"Deal AoE Damage");
|
|
|
|
- player.sendMessage(ChatColor.DARK_AQUA+"Critical Strikes: "+ChatColor.GREEN+"Double Damage");
|
|
|
|
|
|
+ player.sendMessage(ChatColor.DARK_AQUA+"Critical Strikes (Monster): "+ChatColor.GREEN+"Instant kill");
|
|
|
|
+ player.sendMessage(ChatColor.DARK_AQUA+"Critical Strikes (Players): "+ChatColor.GREEN+"Double Damage");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Axe Mastery (500 SKILL): "+ChatColor.GREEN+"Modifies Damage");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Axe Mastery (500 SKILL): "+ChatColor.GREEN+"Modifies Damage");
|
|
- player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"YOUR STATS"+ChatColor.RED+"[]---");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Chance to crtically strike: "+ChatColor.YELLOW+percentage+"%");
|
|
|
|
- if(mcUsers.getProfile(player).getAxesInt() < 500){
|
|
|
|
- player.sendMessage(ChatColor.GRAY+"LOCKED UNTIL 500+ SKILL (AXEMASTERY)");
|
|
|
|
- } else {
|
|
|
|
- player.sendMessage(ChatColor.GREEN+"Axe Mastery - Bonus 4 damage");
|
|
|
|
- }
|
|
|
|
- player.sendMessage(ChatColor.RED+"Skull Splitter Length: "+ChatColor.YELLOW+(ticks * 2)+"s");
|
|
|
|
}
|
|
}
|
|
if(split[0].equalsIgnoreCase("/swords")){
|
|
if(split[0].equalsIgnoreCase("/swords")){
|
|
event.setCancelled(true);
|
|
event.setCancelled(true);
|
|
- String percentage, parrypercentage = null;
|
|
|
|
- float skillvalue = (float)mcUsers.getProfile(player).getSwordsInt();
|
|
|
|
- if(mcUsers.getProfile(player).getSwordsInt() < 750){
|
|
|
|
- percentage = String.valueOf((skillvalue / 1000) * 100);
|
|
|
|
- } else {
|
|
|
|
- percentage = "75";
|
|
|
|
- }
|
|
|
|
- if(mcUsers.getProfile(player).getSwordsInt() >= 775){
|
|
|
|
- parrypercentage = "20";
|
|
|
|
- } else if (mcUsers.getProfile(player).getSwordsInt() >= 445){
|
|
|
|
- parrypercentage = "15";
|
|
|
|
- } else if (mcUsers.getProfile(player).getSwordsInt() >= 250){
|
|
|
|
- parrypercentage = "10";
|
|
|
|
- } else if (mcUsers.getProfile(player).getSwordsInt() >= 25){
|
|
|
|
- parrypercentage = "5";
|
|
|
|
- } else {
|
|
|
|
- parrypercentage = "0";
|
|
|
|
- }
|
|
|
|
- int ticks = 2;
|
|
|
|
- if(mcUsers.getProfile(player).getSwordsInt() >= 50)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getSwordsInt() >= 150)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getSwordsInt() >= 250)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getSwordsInt() >= 350)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getSwordsInt() >= 450)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getSwordsInt() >= 550)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getSwordsInt() >= 650)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getSwordsInt() >= 750)
|
|
|
|
- ticks++;
|
|
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"SWORDS"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"SWORDS"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Attacking Monsters");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Attacking Monsters");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
- player.sendMessage(ChatColor.DARK_AQUA+"Serrated Strikes (ABILITY): "+ChatColor.GREEN+"25% DMG AoE, Bleed+ AoE");
|
|
|
|
- player.sendMessage(ChatColor.DARK_GRAY+"Serrated Strikes Bleed+: "+ChatColor.GREEN+"Enemies Bleed Longer");
|
|
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Parrying: "+ChatColor.GREEN+"Negates Damage");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Parrying: "+ChatColor.GREEN+"Negates Damage");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Bleed: "+ChatColor.GREEN+"Apply a 2 second bleed DoT to enemies");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Bleed: "+ChatColor.GREEN+"Apply a 2 second bleed DoT to enemies");
|
|
- player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"YOUR STATS"+ChatColor.RED+"[]---");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Bleed Chance: "+ChatColor.YELLOW+percentage+"%");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Parry Chance:"+ChatColor.YELLOW+parrypercentage+"%");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Serrated Strikes Length: "+ChatColor.YELLOW+(ticks * 2)+"s");
|
|
|
|
}
|
|
}
|
|
if(split[0].equalsIgnoreCase("/acrobatics")){
|
|
if(split[0].equalsIgnoreCase("/acrobatics")){
|
|
event.setCancelled(true);
|
|
event.setCancelled(true);
|
|
- float skillvalue = (float)mcUsers.getProfile(player).getAcrobaticsInt();
|
|
|
|
- String percentage = String.valueOf((skillvalue / 1000) * 100);
|
|
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"ACROBATICS"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"ACROBATICS"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Falling");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Falling");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Roll: "+ChatColor.GREEN+"Negates Damage");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Roll: "+ChatColor.GREEN+"Negates Damage");
|
|
- player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"YOUR STATS"+ChatColor.RED+"[]---");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Roll Chance: "+ChatColor.YELLOW+percentage+"%");
|
|
|
|
}
|
|
}
|
|
if(split[0].equalsIgnoreCase("/mining")){
|
|
if(split[0].equalsIgnoreCase("/mining")){
|
|
- float skillvalue = (float)mcUsers.getProfile(player).getMiningInt();
|
|
|
|
- String percentage = String.valueOf((skillvalue / 1000) * 100);
|
|
|
|
- int miningticks = 2;
|
|
|
|
- if(mcUsers.getProfile(player).getMiningInt() >= 50)
|
|
|
|
- miningticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getMiningInt() >= 150)
|
|
|
|
- miningticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getMiningInt() >= 250)
|
|
|
|
- miningticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getMiningInt() >= 350)
|
|
|
|
- miningticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getMiningInt() >= 450)
|
|
|
|
- miningticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getMiningInt() >= 550)
|
|
|
|
- miningticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getMiningInt() >= 650)
|
|
|
|
- miningticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getMiningInt() >= 750)
|
|
|
|
- miningticks++;
|
|
|
|
event.setCancelled(true);
|
|
event.setCancelled(true);
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"MINING"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"MINING"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Mining Stone & Ore");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Mining Stone & Ore");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
- player.sendMessage(ChatColor.DARK_AQUA+"Super Breaker (ABILITY): "+ChatColor.GREEN+"Speed+, Triple Drop Chance");
|
|
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Double Drops: "+ChatColor.GREEN+"Double the normal loot");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Double Drops: "+ChatColor.GREEN+"Double the normal loot");
|
|
- player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"YOUR STATS"+ChatColor.RED+"[]---");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Double Drop Chance: "+ChatColor.YELLOW+percentage+"%");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Super Breaker Length: "+ChatColor.YELLOW+(miningticks * 2)+"s");
|
|
|
|
}
|
|
}
|
|
if(split[0].equalsIgnoreCase("/repair")){
|
|
if(split[0].equalsIgnoreCase("/repair")){
|
|
- float skillvalue = (float)mcUsers.getProfile(player).getRepairInt();
|
|
|
|
- String percentage = String.valueOf((skillvalue / 1000) * 100);
|
|
|
|
event.setCancelled(true);
|
|
event.setCancelled(true);
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"REPAIR"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"REPAIR"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Repairing");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Repairing");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Repair: "+ChatColor.GREEN+"Repair Iron Tools & Armor");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Repair: "+ChatColor.GREEN+"Repair Iron Tools & Armor");
|
|
- player.sendMessage(ChatColor.DARK_AQUA+"Super Repair: "+ChatColor.GREEN+"Fully Repair an item");
|
|
|
|
- player.sendMessage(ChatColor.DARK_AQUA+"Diamond Repair ("+mcLoadProperties.repairdiamondlevel+"+ SKILL): "+ChatColor.GREEN+"Repair Diamond Tools & Armor");
|
|
|
|
- player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"YOUR STATS"+ChatColor.RED+"[]---");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Super Repair Chance: "+ChatColor.YELLOW+percentage+"%");
|
|
|
|
|
|
+ player.sendMessage(ChatColor.DARK_AQUA+"Diamond Repair (50+ SKILL): "+ChatColor.GREEN+"Repair Diamond Tools & Armor");
|
|
}
|
|
}
|
|
if(split[0].equalsIgnoreCase("/unarmed")){
|
|
if(split[0].equalsIgnoreCase("/unarmed")){
|
|
event.setCancelled(true);
|
|
event.setCancelled(true);
|
|
- int rank = 0;
|
|
|
|
- String percentage, arrowpercentage;
|
|
|
|
- float skillvalue = (float)mcUsers.getProfile(player).getUnarmedInt();
|
|
|
|
-
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() < 750){
|
|
|
|
- percentage = String.valueOf((skillvalue / 1000) * 100);
|
|
|
|
- } else {
|
|
|
|
- percentage = "75";
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() < 1000){
|
|
|
|
- arrowpercentage = String.valueOf(((skillvalue / 1000) * 100) / 2);
|
|
|
|
- } else {
|
|
|
|
- arrowpercentage = "50";
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() >= 50)
|
|
|
|
- rank++;
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() >= 100)
|
|
|
|
- rank++;
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() >= 200)
|
|
|
|
- rank++;
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() >= 325)
|
|
|
|
- rank++;
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() >= 475)
|
|
|
|
- rank++;
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() >= 600)
|
|
|
|
- rank++;
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() >= 775)
|
|
|
|
- rank++;
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() >= 950)
|
|
|
|
- rank++;
|
|
|
|
-
|
|
|
|
- int ticks = 2;
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() >= 50)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() >= 150)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() >= 250)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() >= 350)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() >= 450)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() >= 550)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() >= 650)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getUnarmedInt() >= 750)
|
|
|
|
- ticks++;
|
|
|
|
-
|
|
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"UNARMED"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"UNARMED"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Attacking Monsters");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Attacking Monsters");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
- player.sendMessage(ChatColor.DARK_AQUA+"Berserk (ABILITY): "+ChatColor.GREEN+"+50% DMG, Breaks weak materials");
|
|
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Disarm (Players): "+ChatColor.GREEN+"Drops the foes item held in hand");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Disarm (Players): "+ChatColor.GREEN+"Drops the foes item held in hand");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Damage+: "+ChatColor.GREEN+"Modifies Damage");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Damage+: "+ChatColor.GREEN+"Modifies Damage");
|
|
- player.sendMessage(ChatColor.DARK_AQUA+"Arrow Deflect: "+ChatColor.GREEN+"Deflect arrows");
|
|
|
|
- player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"YOUR STATS"+ChatColor.RED+"[]---");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Arrow Deflect Chance: "+ChatColor.YELLOW+arrowpercentage+"%");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Disarm Chance: "+ChatColor.YELLOW+percentage+"%");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Damage+ (Rank"+rank+"): Bonus "+rank+" damage");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Berserk Length: "+ChatColor.YELLOW+(ticks * 2)+"s");
|
|
|
|
}
|
|
}
|
|
if(split[0].equalsIgnoreCase("/herbalism")){
|
|
if(split[0].equalsIgnoreCase("/herbalism")){
|
|
event.setCancelled(true);
|
|
event.setCancelled(true);
|
|
- int rank = 0;
|
|
|
|
- if(mcUsers.getProfile(player).getHerbalismInt() >= 50){
|
|
|
|
- rank++;
|
|
|
|
- } else if (mcUsers.getProfile(player).getHerbalismInt() >= 150){
|
|
|
|
- rank++;
|
|
|
|
- } else if (mcUsers.getProfile(player).getHerbalismInt() >= 250){
|
|
|
|
- rank++;
|
|
|
|
- } else if (mcUsers.getProfile(player).getHerbalismInt() >= 350){
|
|
|
|
- rank++;
|
|
|
|
- } else if (mcUsers.getProfile(player).getHerbalismInt() >= 450){
|
|
|
|
- rank++;
|
|
|
|
- } else if (mcUsers.getProfile(player).getHerbalismInt() >= 550){
|
|
|
|
- rank++;
|
|
|
|
- } else if (mcUsers.getProfile(player).getHerbalismInt() >= 650){
|
|
|
|
- rank++;
|
|
|
|
- } else if (mcUsers.getProfile(player).getHerbalismInt() >= 750){
|
|
|
|
- rank++;
|
|
|
|
- }
|
|
|
|
- float skillvalue = (float)mcUsers.getProfile(player).getHerbalismInt();
|
|
|
|
- String percentage = String.valueOf((skillvalue / 1000) * 100);
|
|
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"HERBALISM"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"HERBALISM"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Harvesting Herbs");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Harvesting Herbs");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Food+: "+ChatColor.GREEN+"Modifies health received from bread/stew");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Food+: "+ChatColor.GREEN+"Modifies health received from bread/stew");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Double Drops (Wheat): "+ChatColor.GREEN+"Double the normal loot");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Double Drops (Wheat): "+ChatColor.GREEN+"Double the normal loot");
|
|
- player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"YOUR STATS"+ChatColor.RED+"[]---");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Double Drop Chance: "+percentage+"%");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Food+ (Rank"+rank+"): Bonus "+rank+" healing");
|
|
|
|
}
|
|
}
|
|
if(split[0].equalsIgnoreCase("/excavation")){
|
|
if(split[0].equalsIgnoreCase("/excavation")){
|
|
|
|
+
|
|
event.setCancelled(true);
|
|
event.setCancelled(true);
|
|
- int ticks = 2;
|
|
|
|
- if(mcUsers.getProfile(player).getExcavationInt() >= 50)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getExcavationInt() >= 150)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getExcavationInt() >= 250)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getExcavationInt() >= 350)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getExcavationInt() >= 450)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getExcavationInt() >= 550)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getExcavationInt() >= 650)
|
|
|
|
- ticks++;
|
|
|
|
- if(mcUsers.getProfile(player).getExcavationInt() >= 750)
|
|
|
|
- ticks++;
|
|
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"EXCAVATION"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"EXCAVATION"+ChatColor.RED+"[]-----");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Digging and finding treasures");
|
|
player.sendMessage(ChatColor.DARK_GRAY+"XP GAIN: "+ChatColor.WHITE+"Digging and finding treasures");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"EFFECTS"+ChatColor.RED+"[]---");
|
|
- player.sendMessage(ChatColor.DARK_AQUA+"Giga Drill Breaker (ABILITY): "+ChatColor.GREEN+"3x Drop Rate, 3x EXP, +Speed");
|
|
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Treasure Hunter: "+ChatColor.GREEN+"Ability to dig for treasure");
|
|
player.sendMessage(ChatColor.DARK_AQUA+"Treasure Hunter: "+ChatColor.GREEN+"Ability to dig for treasure");
|
|
- player.sendMessage(ChatColor.RED+"---[]"+ChatColor.GREEN+"YOUR STATS"+ChatColor.RED+"[]---");
|
|
|
|
- player.sendMessage(ChatColor.RED+"Giga Drill Breaker Length: "+ChatColor.YELLOW+(ticks * 2)+"s");
|
|
|
|
}
|
|
}
|
|
if(split[0].equalsIgnoreCase("/"+mcLoadProperties.mcmmo)){
|
|
if(split[0].equalsIgnoreCase("/"+mcLoadProperties.mcmmo)){
|
|
event.setCancelled(true);
|
|
event.setCancelled(true);
|
|
- player.sendMessage(ChatColor.RED+"-----[]"+ChatColor.GREEN+"mcMMO"+ChatColor.RED+"[]-----");
|
|
|
|
- player.sendMessage(ChatColor.YELLOW+"mcMMO is an RPG server mod for minecraft.");
|
|
|
|
- player.sendMessage(ChatColor.YELLOW+"There are many skills added by mcMMO to minecraft.");
|
|
|
|
- player.sendMessage(ChatColor.YELLOW+"They can do anything from giving a chance");
|
|
|
|
- player.sendMessage(ChatColor.YELLOW+"for double drops to letting you break materials instantly.");
|
|
|
|
- player.sendMessage(ChatColor.YELLOW+"For example, by harvesting logs from trees you will gain");
|
|
|
|
- player.sendMessage(ChatColor.YELLOW+"Woodcutting xp and once you have enough xp you will gain");
|
|
|
|
- player.sendMessage(ChatColor.YELLOW+"a skill level in Woodcutting. By raising this skill you will");
|
|
|
|
- player.sendMessage(ChatColor.YELLOW+"be able to receive benefits like "+ChatColor.RED+"double drops");
|
|
|
|
- player.sendMessage(ChatColor.YELLOW+"and increase the effects of the "+ChatColor.RED+"\"Tree Felling\""+ChatColor.YELLOW+" ability.");
|
|
|
|
- player.sendMessage(ChatColor.YELLOW+"mcMMO has abilities related to the skill, skills normally");
|
|
|
|
- player.sendMessage(ChatColor.YELLOW+"provide passive bonuses but they also have activated");
|
|
|
|
- player.sendMessage(ChatColor.YELLOW+"abilities too. Each ability is activated by holding");
|
|
|
|
- player.sendMessage(ChatColor.YELLOW+"the appropriate tool and "+ChatColor.RED+"right clicking.");
|
|
|
|
- player.sendMessage(ChatColor.YELLOW+"For example, if you hold a Mining Pick and right click");
|
|
|
|
- player.sendMessage(ChatColor.YELLOW+"you will ready your Pickaxe, attack mining materials");
|
|
|
|
- player.sendMessage(ChatColor.YELLOW+"and then "+ChatColor.RED+"Super Breaker "+ChatColor.YELLOW+"will activate.");
|
|
|
|
- player.sendMessage(ChatColor.GREEN+"Find out mcMMO commands with "+ChatColor.DARK_AQUA+"/"+mcLoadProperties.mcc);
|
|
|
|
|
|
+ player.sendMessage(ChatColor.GRAY+"mcMMO is an RPG inspired plugin");
|
|
|
|
+ player.sendMessage(ChatColor.GRAY+"You can gain skills in several professions by");
|
|
|
|
+ player.sendMessage(ChatColor.GRAY+"doing things related to that profession.");
|
|
|
|
+ player.sendMessage(ChatColor.GRAY+"Mining for example will increase your mining XP.");
|
|
|
|
+ player.sendMessage(ChatColor.GRAY+"Wood Cutting will increase Wood Cutting, etc...");
|
|
|
|
+ player.sendMessage(ChatColor.GRAY+"Repairing is simple in mcMMO");
|
|
|
|
+ player.sendMessage(ChatColor.GRAY+"Say you want to repair an iron shovel");
|
|
|
|
+ player.sendMessage(ChatColor.GRAY+"start by making an anvil by combining 9 iron ingots");
|
|
|
|
+ player.sendMessage(ChatColor.GRAY+"on a workbench. Place the anvil and while holding the shovel");
|
|
|
|
+ player.sendMessage(ChatColor.GRAY+"right click the anvil to interact with it, If you have spare");
|
|
|
|
+ player.sendMessage(ChatColor.GRAY+"iron ingots in your inventory the item will be repaired.");
|
|
|
|
+ player.sendMessage(ChatColor.GRAY+"You cannot hurt other party members");
|
|
|
|
+ player.sendMessage(ChatColor.BLUE+"Set your own spawn with "+ChatColor.RED+"/"+mcLoadProperties.setmyspawn);
|
|
|
|
+ player.sendMessage(ChatColor.GREEN+"Based on your skills you will get "+ChatColor.DARK_RED+"random procs "+ChatColor.GREEN+ "when");
|
|
|
|
+ player.sendMessage(ChatColor.GREEN+"using your profession, like "+ChatColor.DARK_RED+"double drops "+ChatColor.GREEN+"or "+ChatColor.DARK_RED+"better repairs");
|
|
|
|
+ player.sendMessage(ChatColor.GREEN+"Find out mcMMO commands with /"+mcLoadProperties.mcc);
|
|
|
|
+ player.sendMessage(ChatColor.GREEN+"Appreciate the mod? ");
|
|
player.sendMessage(ChatColor.GREEN+"You can donate via paypal to"+ChatColor.DARK_RED+" nossr50@gmail.com");
|
|
player.sendMessage(ChatColor.GREEN+"You can donate via paypal to"+ChatColor.DARK_RED+" nossr50@gmail.com");
|
|
}
|
|
}
|
|
if(split[0].equalsIgnoreCase("/"+mcLoadProperties.mcc)){
|
|
if(split[0].equalsIgnoreCase("/"+mcLoadProperties.mcc)){
|
|
@@ -603,8 +341,6 @@ public class mcm {
|
|
player.sendMessage("/"+mcLoadProperties.setmyspawn+" "+ChatColor.RED+"- Set your MySpawn");
|
|
player.sendMessage("/"+mcLoadProperties.setmyspawn+" "+ChatColor.RED+"- Set your MySpawn");
|
|
}
|
|
}
|
|
player.sendMessage(ChatColor.GREEN+"--OTHER COMMANDS--");
|
|
player.sendMessage(ChatColor.GREEN+"--OTHER COMMANDS--");
|
|
- if(mcPermissions.getInstance().mcAbility(player))
|
|
|
|
- player.sendMessage("/"+mcLoadProperties.mcability+ChatColor.RED+" - Toggle ability activation with right click");
|
|
|
|
if(mcPermissions.getInstance().adminChat(player)){
|
|
if(mcPermissions.getInstance().adminChat(player)){
|
|
player.sendMessage("/a "+ChatColor.RED+"- Toggle admin chat");
|
|
player.sendMessage("/a "+ChatColor.RED+"- Toggle admin chat");
|
|
}
|
|
}
|