geforkt von Mirrors/Paper
Don't allow players with modded clients to send empty (0 char) chat messages. Thanks to a PR by robin0van0der0v
Dieser Commit ist enthalten in:
Ursprung
dfbcd36ab7
Commit
b369805590
@ -724,6 +724,11 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
|||||||
|
|
||||||
public boolean chat(String s) {
|
public boolean chat(String s) {
|
||||||
if (!this.player.dead) {
|
if (!this.player.dead) {
|
||||||
|
if (s.length() == 0) {
|
||||||
|
a.warning(this.player.name + " tried to send an empty message");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (s.startsWith("/")) {
|
if (s.startsWith("/")) {
|
||||||
this.handleCommand(s);
|
this.handleCommand(s);
|
||||||
return true;
|
return true;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren