Block sudo in wildcard and gcmd & wildcard

This commit is contained in:
Business Goose 2022-04-01 22:04:12 +01:00
parent f9d64ce765
commit ddd6de4ac6
No known key found for this signature in database
GPG key ID: 77DCA801362E9645
2 changed files with 4 additions and 2 deletions

View file

@ -20,7 +20,8 @@ public class Command_gcmd extends FreedomCommand {
String arguments = String.join(" ", args);
if (arguments.toLowerCase().contains("wildcard") || arguments.toLowerCase().contains("gcmd")
|| arguments.toLowerCase().contains("moles")) {
|| arguments.toLowerCase().contains("moles") || arguments.toLowerCase()
.contains("sudo")) {
playerMsg("What the hell are you trying to do, you stupid idiot...", ChatColor.RED);
if (sender_p != null) {
Command_smite.smite(sender_p);

View file

@ -21,7 +21,8 @@ public class Command_wildcard extends FreedomCommand {
String arguments = String.join(" ", args);
if (arguments.toLowerCase().contains("wildcard") || arguments.toLowerCase()
.contains("gcmd")) {
.contains("gcmd") || arguments.toLowerCase().contains("sudo") || arguments.toLowerCase()
.contains("moles")) {
playerMsg(sender, "What the hell are you trying to do, you stupid idiot...",
ChatColor.RED);
return true;