Prevent commands from being executed, except those whitelisted

This commit is contained in:
graywolf336
2014-01-20 14:40:03 -06:00
parent af58eea360
commit 392b1d94cc
6 changed files with 57 additions and 7 deletions

View File

@ -7,6 +7,8 @@ public enum LangString {
BLOCKBREAKING ("actions"),
/** Section for when they place a block. */
BLOCKPLACING ("actions"),
/** Section for when they try to do a command that isn't whitelisted. */
COMMAND ("actions"),
//Jailing section

View File

@ -10,6 +10,9 @@ public enum Settings {
BLOCKPLACEWHITELIST("jailing.during.blockPlaceWhiteList"),
COMMANDSONJAIL("jailing.jail.commands"),
COMMANDSONRELEASE("jailing.release.commands"),
COMMANDPENALTY("jailing.during.commandPenalty"),
COMMANDPROTECTION("jailing.during.commandProtection"),
COMMANDWHITELIST("jailing.during.commandWhitelist"),
COUNTDOWNTIMEOFFLINE("jailing.during.countDownTimeWhileOffline"),
DEBUG("system.debug"),
DEFAULTJAIL("jailing.jail.defaultJail"),