summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-05-26 21:06:28 +1000
committermd_5 <git@md-5.net>2016-05-26 21:06:28 +1000
commit3c19fef26eb34a5e046a0a31e722b3f003f853d0 (patch)
tree2cf031c79e8a2e649d3c2c0e242b63aa4b164761 /nms-patches
parent042911fef46a2efd1fcc4266a01ede48e6e2948c (diff)
downloadcraftbukkit-3c19fef26eb34a5e046a0a31e722b3f003f853d0.tar
craftbukkit-3c19fef26eb34a5e046a0a31e722b3f003f853d0.tar.gz
craftbukkit-3c19fef26eb34a5e046a0a31e722b3f003f853d0.tar.lz
craftbukkit-3c19fef26eb34a5e046a0a31e722b3f003f853d0.tar.xz
craftbukkit-3c19fef26eb34a5e046a0a31e722b3f003f853d0.zip
SPIGOT-2321: Fully check Vanilla command permissions
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/EntityPlayer.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/nms-patches/EntityPlayer.patch b/nms-patches/EntityPlayer.patch
index 922ce37d..7d60d0b3 100644
--- a/nms-patches/EntityPlayer.patch
+++ b/nms-patches/EntityPlayer.patch
@@ -492,7 +492,7 @@
+ if ("".equals(s)) {
+ return getBukkitEntity().isOp();
+ }
-+ return true;
++ return getBukkitEntity().hasPermission("minecraft.command." + s);
+ // CraftBukkit end
}