mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-13 17:55:26 +02:00
New Salvage ability for Repair!
Added a fully working ability to Repair. With this ability you can salvage items and get bars in return. - Added new permission node for Salvage ability - Added new config options for Salvage - Added new locale strings for Salvage - Added a check to make sure that Repair Anvil != Salvage Anvil
This commit is contained in:
@@ -105,7 +105,7 @@ public class BlockChecks {
|
||||
return false;
|
||||
|
||||
default:
|
||||
if (block.getTypeId() == Config.getInstance().getRepairAnvilId()) {
|
||||
if (block.getTypeId() == Config.getInstance().getRepairAnvilId() | block.getTypeId() == Config.getInstance().getSalvageAnvilId()) {
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
|
@@ -208,6 +208,11 @@ public class Permissions {
|
||||
return player.hasPermission("mcmmo.ability.repair.stringrepair");
|
||||
}
|
||||
|
||||
public boolean salvage(Player player) {
|
||||
return player.hasPermission("mcmmo.ability.repair.salvage");
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* MCMMO.ABILITY.UNARMED.*
|
||||
*/
|
||||
|
Reference in New Issue
Block a user