mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-24 09:59:42 -05:00
Commands now have the ability to set a permission required before execution
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
1 parent
8c73a0ec1b
commit
e60edf31eb
9 files changed
+407
-144
No files matched your search
@@ -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