diff options
author | feildmaster <admin@feildmaster.com> | 2012-12-05 20:47:11 -0600 |
---|---|---|
committer | feildmaster <admin@feildmaster.com> | 2012-12-07 05:22:00 -0600 |
commit | 72ee1f3182ffddba14b2b1ca583e5affb795ca91 (patch) | |
tree | dc36c9d3cb980258ed6e790ab3a547bd8465ec7f /src | |
parent | 6a04fd98ad613cc85533c914950db0d385560bfa (diff) | |
download | craftbukkit-72ee1f3182ffddba14b2b1ca583e5affb795ca91.tar craftbukkit-72ee1f3182ffddba14b2b1ca583e5affb795ca91.tar.gz craftbukkit-72ee1f3182ffddba14b2b1ca583e5affb795ca91.tar.lz craftbukkit-72ee1f3182ffddba14b2b1ca583e5affb795ca91.tar.xz craftbukkit-72ee1f3182ffddba14b2b1ca583e5affb795ca91.zip |
Fix "Commands Only" chat flag. Fixes BUKKIT-2238
Thanks for the commit @mrapple
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/net/minecraft/server/NetServerHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java index 22b8781e..084d0aff 100644 --- a/src/main/java/net/minecraft/server/NetServerHandler.java +++ b/src/main/java/net/minecraft/server/NetServerHandler.java @@ -853,7 +853,7 @@ public class NetServerHandler extends NetHandler { } // CraftBukkit start - if (this.player.getChatFlags() == 1) { + if (this.player.getChatFlags() == 1 && !s.startsWith("/")) { this.sendPacket(new Packet3Chat("Cannot send chat message.")); return; } |