From 8f8859277e45b791f613a1db8e14c3e6f8d0dafa Mon Sep 17 00:00:00 2001 From: Pepich Date: Wed, 29 Mar 2017 09:32:17 +0200 Subject: [PATCH] Disallowed sudoing the modules command as of API v3.1 --- src/com/redstoner/modules/misc/Misc.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/com/redstoner/modules/misc/Misc.java b/src/com/redstoner/modules/misc/Misc.java index cc9d89c..5750e19 100644 --- a/src/com/redstoner/modules/misc/Misc.java +++ b/src/com/redstoner/modules/misc/Misc.java @@ -18,11 +18,12 @@ import com.redstoner.misc.Utils; import com.redstoner.modules.Module; @AutoRegisterListener -@Version(major = 2, minor = 0, revision = 2, compatible = 2) +@Version(major = 2, minor = 0, revision = 3, compatible = 2) public class Misc implements Module, Listener { - private final String[] sudoBlacklist = new String[] {".*:?esudo", ".*:?sudo", ".*:?script.*", ".*:?stop"}; - + private final String[] sudoBlacklist = new String[] {".?+:?esudo", ".?+:?sudo", ".?+:?script.*", ".?+:?stop", + ".?+:?modules"}; + @EventHandler public void onFirstJoin(PlayerJoinEvent event) {