From c25ddd0dbcb84bb97a7b2fabb0f6620d1dea4c12 Mon Sep 17 00:00:00 2001 From: NuclearW Date: Thu, 17 May 2012 09:26:39 -0400 Subject: [PATCH] MOAR PERMISSIONS! --- src/main/java/com/gmail/nossr50/util/Permissions.java | 8 ++++++++ src/main/resources/plugin.yml | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/src/main/java/com/gmail/nossr50/util/Permissions.java b/src/main/java/com/gmail/nossr50/util/Permissions.java index ff4d12486..4b2b3b942 100644 --- a/src/main/java/com/gmail/nossr50/util/Permissions.java +++ b/src/main/java/com/gmail/nossr50/util/Permissions.java @@ -196,6 +196,14 @@ public class Permissions { return player.hasPermission("mcmmo.ability.repair.toolrepair"); } + public boolean otherMaterialRepair(Player player) { + return player.hasPermission("mcmmo.ability.repair.othermaterialrepair"); + } + + public boolean otherRepair(Player player) { + return player.hasPermission("mcmmo.ability.repair.otherrepair"); + } + public boolean stringRepair(Player player) { return player.hasPermission("mcmmo.ability.repair.stringrepair"); } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 6ae656d87..13c27db44 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -264,6 +264,8 @@ permissions: mcmmo.ability.repair.armorrepair: true mcmmo.ability.repair.toolrepair: true mcmmo.ability.repair.stringrepair: true + mcmmo.ability.repair.othermaterialrepair: true + mcmmo.ability.repair.otherrepair: true mcmmo.ability.repair.repairbonus: description: Allows access to Super Repair bonus mcmmo.ability.repair.repairmastry: @@ -288,6 +290,10 @@ permissions: description: Allows ability to repair tools mcmmo.ability.repair.stringrepair: description: Allows ability to repair Bow and Fishing rod + mcmmo.ability.repair.othermaterialrepair: + description: Allows ability to repair items of material type OTHER + mcmmo.ability.repair.otherrepair: + description: Allows ability to repair items of type OTHER mcmmo.ability.unarmed.*: description: Allows access to all Unarmed abilities children: