mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Fix "Commands Only" chat flag. Fixes BUKKIT-2238
Thanks for the commit @mrapple
This commit is contained in:
1 parent
6a04fd98ad
commit
72ee1f3182
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user