mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2024-12-23 02:44:57 +00:00
Block sudo in wildcard and gcmd & wildcard
This commit is contained in:
parent
f9d64ce765
commit
ddd6de4ac6
2 changed files with 4 additions and 2 deletions
|
@ -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