Commands now have the ability to set a permission required before execution
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -31,6 +31,10 @@ public final class PluginCommand extends Command {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!testPermission(sender)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
try {
|
||||
success = executor.onCommand(sender, this, commandLabel, args);
|
||||
} catch (Throwable ex) {
|
||||
|
||||
Reference in New Issue
Block a user