From ee27e454a3d14499fd80db7e823be1cf0176bd99 Mon Sep 17 00:00:00 2001 From: Scott Weldon Date: Sat, 10 Nov 2012 16:52:32 -0800 Subject: [PATCH] Added permission check for placing of signs. Yep. --- .../xp_to_emerald/XPtoEmeraldListener.class | Bin 3318 -> 3441 bytes .../xp_to_emerald/XPtoEmeraldListener.java | 4 ++++ plugin.yml | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/com/scott_weldon/xp_to_emerald/XPtoEmeraldListener.class b/com/scott_weldon/xp_to_emerald/XPtoEmeraldListener.class index b7cbcd2d5f3ee255f59762bd4e2b4c8d80bebb4c..6b12d7329ae234a36ac7a2cfc9a32c47aa64807e 100644 GIT binary patch delta 1116 zcmY+D+fx&F6vsb5$Yz(Y6$pb8EH_c`l7fxMC{!y#kx+Z?J%Veoj&(3=xbj)(}%wFsX9H0*0HlQyXUv(d%ov)KEL_>9r&xt z_v`JSeg;B(v*K&>RF}<8Ica;+®4*=uryLy89`tm#2J zGZ~+rj;B)wVMW78I$IY@r<$C)32Vl#o4S{-JCn}TITMyspL2WMq@MxzTTf$!!BIuw ztYaG-lfZUn4UW5mp4OsaqB>71HoB*cjR#ClFrwHnnz5}!#B#E-zvP@$Y~OLx$5T9` z^R%MutTkh`B(2nVOE~4&<95d6Sx&jl+BRjmLt0pkxi_>wRl>dM?eR{N)p6Y4yt`{> zXjPPq+fG+9K9;a!hm+~CL@~q6n#}Q>+oU(vU*wX`^NR9xX1rxIn@Gf+mI2GLGjS_v zGS6iA`N{m9AaO)A>8p#Sv$k}D`iu!u2AAq~>7Pc{OZ(5S>mfKsZM ze~`^o%d?#tc2mp4)Dvb4$E4&0Tg9SDEOu~)out@BmLM}UO9l?!nS*UK%1R~@r7dkW zGNK=sIeknrL0mRaD(kZ(@JObVr2N;!Pa0RC-KJWnTW44&UEb8EGg>AtQ=D^Wi)-gI z1HpC9D^|I%OzD5|3(I&`cCGR9DzD{2`Tw@!7ZxHy=RHNcC*Uaz`S<6^<(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ald/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.