Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-19 13:00:06 +01:00
Fix "Commands Only" chat flag. Fixes BUKKIT-2238
Thanks for the commit @mrapple
Dieser Commit ist enthalten in:
Ursprung
6a04fd98ad
Commit
72ee1f3182
@ -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;
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren