Commands now have the ability to set a permission required before execution

This commit is contained in:
Dinnerbone
2011-09-02 19:20:54 +01:00
parent 19e92d2c5e
commit 8831a00b4e
9 changed files with 407 additions and 144 deletions

View File

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