mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-10-31 22:49:21 +00:00
Block sudo in wildcard and gcmd & wildcard
This commit is contained in:
parent
f9d64ce765
commit
ddd6de4ac6
|
@ -20,7 +20,8 @@ public class Command_gcmd extends FreedomCommand {
|
||||||
String arguments = String.join(" ", args);
|
String arguments = String.join(" ", args);
|
||||||
|
|
||||||
if (arguments.toLowerCase().contains("wildcard") || arguments.toLowerCase().contains("gcmd")
|
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);
|
playerMsg("What the hell are you trying to do, you stupid idiot...", ChatColor.RED);
|
||||||
if (sender_p != null) {
|
if (sender_p != null) {
|
||||||
Command_smite.smite(sender_p);
|
Command_smite.smite(sender_p);
|
||||||
|
|
|
@ -21,7 +21,8 @@ public class Command_wildcard extends FreedomCommand {
|
||||||
String arguments = String.join(" ", args);
|
String arguments = String.join(" ", args);
|
||||||
|
|
||||||
if (arguments.toLowerCase().contains("wildcard") || arguments.toLowerCase()
|
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...",
|
playerMsg(sender, "What the hell are you trying to do, you stupid idiot...",
|
||||||
ChatColor.RED);
|
ChatColor.RED);
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue