Displays no permission required as None instead of null
This commit is contained in:
parent
af0b0fd12e
commit
5e85dfd3e4
@ -104,6 +104,9 @@ public class CommandBooksWithoutBorders implements TabExecutor {
|
||||
String commandInfo = "\n" + getCommandColor() + pluginCommand.getUsage().replace("<command>",
|
||||
pluginCommand.getName()) + ": " + getSuccessColor() + pluginCommand.getDescription();
|
||||
if (sender.hasPermission("bookswithoutborders.admin")) {
|
||||
if (permission == null) {
|
||||
permission = "None";
|
||||
}
|
||||
commandInfo += getCommandColor() + " {" + permission + "}";
|
||||
}
|
||||
sender.sendMessage(commandInfo);
|
||||
|
Loading…
Reference in New Issue
Block a user