mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 07:14:57 +00:00
Prevent SILLY ADMINS from abusing /wildcard
This commit is contained in:
parent
de44f0a564
commit
f8790704c9
1 changed files with 4 additions and 4 deletions
|
@ -16,21 +16,21 @@ public class Command_wildcard extends FreedomCommand {
|
||||||
return false;
|
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);
|
playerMsg("What the hell are you trying to do, you stupid idiot...", ChatColor.RED);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (args[0].equals("gtfo"))
|
if (args[0].toLowerCase().contains("gtfo"))
|
||||||
{
|
{
|
||||||
playerMsg("Nice try", ChatColor.RED);
|
playerMsg("Nice try", ChatColor.RED);
|
||||||
return true;
|
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);
|
playerMsg("Look, we all hate people, but this is not the way to deal with it, doom is evil enough!", ChatColor.RED);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (args[0].equals("saconfig"))
|
if (args[0].toLowerCase().contains("saconfig"))
|
||||||
{
|
{
|
||||||
playerMsg("WOA, WTF are you trying to do???", ChatColor.RED);
|
playerMsg("WOA, WTF are you trying to do???", ChatColor.RED);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue