mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-19 08:55:26 +01:00
Level check
This commit is contained in:
parent
c218de9567
commit
4eabd417b9
@ -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())) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user