diff --git a/com/scott_weldon/xp_to_emerald/XPtoEmeraldListener.class b/com/scott_weldon/xp_to_emerald/XPtoEmeraldListener.class index b7cbcd2..6b12d73 100644 Binary files a/com/scott_weldon/xp_to_emerald/XPtoEmeraldListener.class and b/com/scott_weldon/xp_to_emerald/XPtoEmeraldListener.class differ diff --git a/com/scott_weldon/xp_to_emerald/XPtoEmeraldListener.java b/com/scott_weldon/xp_to_emerald/XPtoEmeraldListener.java index 85c4c98..2bee3f7 100644 --- a/com/scott_weldon/xp_to_emerald/XPtoEmeraldListener.java +++ b/com/scott_weldon/xp_to_emerald/XPtoEmeraldListener.java @@ -26,6 +26,10 @@ public void onSignPlace(SignChangeEvent e) { if (!lines[0].equalsIgnoreCase("[xptoemerald]")) { return; } + if (!p.hasPermission("xptoemerald.admin")) { + p.sendMessage("You don't have permission for that!"); + return; + } if (!lines[1].equalsIgnoreCase("xte") && !lines[1].equalsIgnoreCase("etx")) { p.sendMessage("Invalid conversion type! (Second line of sign.)"); sign.breakNaturally(); diff --git a/plugin.yml b/plugin.yml index 0938f51..089307c 100644 --- a/plugin.yml +++ b/plugin.yml @@ -1,6 +1,6 @@ name: XP to Emerald main: com.scott_weldon.xp_to_emerald.XPtoEmerald -version: 0.5.0 +version: 0.5.1 commands: xptoemerald: description: Convert some XP to Emeralds.