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

@ -19,6 +19,9 @@ jailing:
blockPlacePenalty: 5m
blockPlaceProtection: true
blockPlaceWhiteList: ['crops', 'carrot', 'potato'] # these blocks can be placed at any time by prisoners
commandPenalty: 5m
commandProtection: true
commandWhitelist: ['/ping', '/list']
countDownTimeWhileOffline: false
explosionProtection: true
ignoreSleeping: true

View File

@ -2,6 +2,7 @@ language:
actions:
blockbreaking: 'breaking a block'
blockplacing: 'placing a block'
command: 'trying to use a command'
general:
unknowncommand: '&cNo commands registered by the name of %0%.'
nopermission: '&cInsufficient permission.'