From 72ee1f3182ffddba14b2b1ca583e5affb795ca91 Mon Sep 17 00:00:00 2001 From: feildmaster Date: Wed, 5 Dec 2012 20:47:11 -0600 Subject: [PATCH] Fix "Commands Only" chat flag. Fixes BUKKIT-2238 Thanks for the commit @mrapple --- src/main/java/net/minecraft/server/NetServerHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java index 22b8781e4c..084d0aff6a 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; }