Skip to content

Commit

Permalink
give the permission
Browse files Browse the repository at this point in the history
  • Loading branch information
Doridian committed Sep 7, 2023
1 parent 7823dbb commit aebf433
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public void register(String command, String permission, LuaState thread, LuaValu
commandInfo.put(command, info);

CommandManagerPluginCommand dummyCommand = new CommandManagerPluginCommand(command);
dummyCommand.setPermission(permission);
dummyCommand.setLabel(command);
getCommandMap().getKnownCommands().put(command, dummyCommand);
}
Expand Down

0 comments on commit aebf433

Please sign in to comment.