mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Codebase!
This commit is contained in:
parent
29c55312a5
commit
421455224f
@ -62,6 +62,11 @@ public class RepairManager extends SkillManager {
|
||||
Player player = getPlayer();
|
||||
Repairable repairable = mcMMO.getRepairableManager().getRepairable(item.getType());
|
||||
|
||||
if (item.getItemMeta().isUnbreakable()) {
|
||||
player.sendMessage(LocaleLoader.getString("Anvil.Unbreakable"));
|
||||
return;
|
||||
}
|
||||
|
||||
// Permissions checks on material and item types
|
||||
if (!Permissions.repairMaterialType(player, repairable.getRepairMaterialType())) {
|
||||
player.sendMessage(LocaleLoader.getString("mcMMO.NoPermission"));
|
||||
|
@ -60,6 +60,11 @@ public class SalvageManager extends SkillManager {
|
||||
|
||||
Salvageable salvageable = mcMMO.getSalvageableManager().getSalvageable(item.getType());
|
||||
|
||||
if (item.getItemMeta().isUnbreakable()) {
|
||||
player.sendMessage(LocaleLoader.getString("Anvil.Unbreakable"));
|
||||
return;
|
||||
}
|
||||
|
||||
// Permissions checks on material and item types
|
||||
if (!Permissions.salvageItemType(player, salvageable.getSalvageItemType())) {
|
||||
player.sendMessage(LocaleLoader.getString("mcMMO.NoPermission"));
|
||||
|
@ -283,6 +283,9 @@ Salvage.Listener.Anvil=[[DARK_RED]]You have placed a Salvage anvil, use this to
|
||||
Salvage.Listener=Salvage:
|
||||
Salvage.SkillName=SALVAGE
|
||||
|
||||
#Anvil (Shared between SALVAGE and REPAIR)
|
||||
Anvil.Unbreakable=This item is unbreakable!
|
||||
|
||||
#SWORDS
|
||||
Swords.Ability.Lower=[[GRAY]]**YOU LOWER YOUR SWORD**
|
||||
Swords.Ability.Ready=[[GREEN]]**YOU READY YOUR SWORD**
|
||||
|
Loading…
Reference in New Issue
Block a user