0

Disallowed sudoing the modules command as of API v3.1

This commit is contained in:
Pepich 2017-03-29 09:32:17 +02:00
parent 0f2d365743
commit 8f8859277e

View File

@ -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)
{