From f8790704c9a9dff37fa522e883b325d4310a7c44 Mon Sep 17 00:00:00 2001 From: business-goose Date: Wed, 23 Mar 2022 23:13:14 +0000 Subject: [PATCH] Prevent SILLY ADMINS from abusing /wildcard --- .../TotalFreedomMod/commands/Command_wildcard.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_wildcard.java b/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_wildcard.java index f2d441b..4e34470 100644 --- a/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_wildcard.java +++ b/src/main/java/me/StevenLawson/TotalFreedomMod/commands/Command_wildcard.java @@ -16,21 +16,21 @@ public class Command_wildcard extends FreedomCommand { return false; } - if (args[0].equals("wildcard")) { + if (args[0].toLowerCase().contains("wildcard") || args[0].toLowerCase().contains("gcmd")) { playerMsg("What the hell are you trying to do, you stupid idiot...", ChatColor.RED); return true; } - if (args[0].equals("gtfo")) + if (args[0].toLowerCase().contains("gtfo")) { playerMsg("Nice try", ChatColor.RED); return true; } - if (args[0].equals("doom")) + if (args[0].toLowerCase().contains("doom")) { playerMsg("Look, we all hate people, but this is not the way to deal with it, doom is evil enough!", ChatColor.RED); return true; } - if (args[0].equals("saconfig")) + if (args[0].toLowerCase().contains("saconfig")) { playerMsg("WOA, WTF are you trying to do???", ChatColor.RED); return true;