From 4eabd417b98c06ceef1cc930079997bbf1c9d30f Mon Sep 17 00:00:00 2001 From: NuclearW Date: Tue, 22 May 2012 05:10:43 -0400 Subject: [PATCH] Level check --- .../gmail/nossr50/skills/repair/SimpleRepairManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/repair/SimpleRepairManager.java b/src/main/java/com/gmail/nossr50/skills/repair/SimpleRepairManager.java index 82f392274..41779ab03 100644 --- a/src/main/java/com/gmail/nossr50/skills/repair/SimpleRepairManager.java +++ b/src/main/java/com/gmail/nossr50/skills/repair/SimpleRepairManager.java @@ -72,7 +72,11 @@ public class SimpleRepairManager implements RepairManager { return; } - // TODO: Level check + // Level check + if(skillLevel < repairable.getMinimumLevel()) { + player.sendMessage(LocaleLoader.getString("Repair.Skills.Adept", new Object[] { String.valueOf(repairable.getMinimumLevel()), Misc.prettyItemString(item.getTypeId()) } )); + return; + } // Check if they have the proper material to repair with if(!inventory.contains(repairable.getRepairMaterialId())) {