mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
More work on commands.
This commit is contained in:
parent
069e656cde
commit
eb7a0143da
@ -82,6 +82,8 @@ public class InspectCommand implements CommandExecutor {
|
|||||||
sender.sendMessage(mcLocale.getString("m.SkillStats", new Object[] { mcLocale.getString("mcPlayerListener.RepairSkill"), PP.getSkillLevel(SkillType.REPAIR), PP.getSkillXpLevel(SkillType.REPAIR), PP.getXpToLevel(SkillType.REPAIR) }));
|
sender.sendMessage(mcLocale.getString("m.SkillStats", new Object[] { mcLocale.getString("mcPlayerListener.RepairSkill"), PP.getSkillLevel(SkillType.REPAIR), PP.getSkillXpLevel(SkillType.REPAIR), PP.getXpToLevel(SkillType.REPAIR) }));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
sender.sendMessage(usage);
|
sender.sendMessage(usage);
|
||||||
return true;
|
return true;
|
||||||
|
@ -427,10 +427,10 @@ public class Repair {
|
|||||||
short newDurability = getRepairAmount(item, player);
|
short newDurability = getRepairAmount(item, player);
|
||||||
PlayerInventory inventory = player.getInventory();
|
PlayerInventory inventory = player.getInventory();
|
||||||
|
|
||||||
McMMOPlayerRepairCheckEvent preEvent = new McMMOPlayerRepairCheckEvent(player, (short) (initialDurability - newDurability), repairMaterial, item);
|
McMMOPlayerRepairCheckEvent event = new McMMOPlayerRepairCheckEvent(player, (short) (initialDurability - newDurability), repairMaterial, item);
|
||||||
Bukkit.getPluginManager().callEvent(preEvent);
|
Bukkit.getPluginManager().callEvent(event);
|
||||||
|
|
||||||
if (preEvent.isCancelled()) {
|
if (event.isCancelled()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -431,7 +431,7 @@ Party.Forbidden=[mcMMO] Parties not permitted on this world (See Permissions)
|
|||||||
m.EffectsTaming7_1=Summon an animal to your side
|
m.EffectsTaming7_1=Summon an animal to your side
|
||||||
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones/Fish in hand
|
m.EffectsTaming7_2=[[GRAY]]COTW HOW-TO: Crouch and right click with {0} Bones/Fish in hand
|
||||||
m.EffectsTaming1_1=Bone-whacking inspects wolves/ocelots
|
m.EffectsTaming1_1=Bone-whacking inspects wolves/ocelots
|
||||||
m.SkillStats=[[YELLOW]]{0}[[GREEN]]{1}[[DARK_AQUA]] XP([[GRAY]]{2}[[DARK_AQUA]]/[[GRAY]]{3}[[DARK_AQUA]]
|
m.SkillStats=[[YELLOW]]{0}[[GREEN]]{1}[[DARK_AQUA]] XP([[GRAY]]{2}[[DARK_AQUA]]/[[GRAY]]{3}[[DARK_AQUA]])
|
||||||
Inspect.TooFar=[[RED]]You are too far away to inspect that player!
|
Inspect.TooFar=[[RED]]You are too far away to inspect that player!
|
||||||
Inspect.Offline = [[RED]]That player is offline, inspecting offline players is limited to Ops!
|
Inspect.Offline = [[RED]]That player is offline, inspecting offline players is limited to Ops!
|
||||||
Inspect.DoesNotExist = [[RED]]Player does not exist in the database!
|
Inspect.DoesNotExist = [[RED]]Player does not exist in the database!
|
||||||
|
Loading…
Reference in New Issue
Block a user