Disallowed sudoing the modules command as of API v3.1
This commit is contained in:
parent
0f2d365743
commit
8f8859277e
@ -18,10 +18,11 @@ import com.redstoner.misc.Utils;
|
|||||||
import com.redstoner.modules.Module;
|
import com.redstoner.modules.Module;
|
||||||
|
|
||||||
@AutoRegisterListener
|
@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
|
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
|
@EventHandler
|
||||||
public void onFirstJoin(PlayerJoinEvent event)
|
public void onFirstJoin(PlayerJoinEvent event)
|
||||||
|
Reference in New Issue
Block a user