Merge pull request #3 from TfT-02/master

Salvage ability for Repair
This commit is contained in:
Glitchfinder
2012-11-13 13:37:04 -08:00
14 changed files with 188 additions and 6 deletions

View File

@ -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 {

View File

@ -212,6 +212,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.*
*/