SteamWar/BungeeCore
Archiviert
13
2

Better 7 sanitize

Dieser Commit ist enthalten in:
yoyosource 2021-07-11 13:23:29 +02:00
Ursprung c8bc438b0c
Commit 587395002a

Datei anzeigen

@ -64,6 +64,10 @@ public class ChatListener extends BasicListener {
e.setMessage("/" + e.getMessage().substring(1)); e.setMessage("/" + e.getMessage().substring(1));
}else if(begin.startsWith("77") && begin.substring(2).matches("[A-Za-z]+")){ }else if(begin.startsWith("77") && begin.substring(2).matches("[A-Za-z]+")){
e.setMessage("//" + e.getMessage().substring(2)); e.setMessage("//" + e.getMessage().substring(2));
}else if(begin.startsWith("7/") && begin.substring(2).matches("[A-Za-z]+")){
e.setMessage("//" + e.getMessage().substring(2));
}else if(begin.startsWith("/7") && begin.substring(2).matches("[A-Za-z]+")){
e.setMessage("//" + e.getMessage().substring(2));
} }
} }