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>",
|
String commandInfo = "\n" + getCommandColor() + pluginCommand.getUsage().replace("<command>",
|
||||||
pluginCommand.getName()) + ": " + getSuccessColor() + pluginCommand.getDescription();
|
pluginCommand.getName()) + ": " + getSuccessColor() + pluginCommand.getDescription();
|
||||||
if (sender.hasPermission("bookswithoutborders.admin")) {
|
if (sender.hasPermission("bookswithoutborders.admin")) {
|
||||||
|
if (permission == null) {
|
||||||
|
permission = "None";
|
||||||
|
}
|
||||||
commandInfo += getCommandColor() + " {" + permission + "}";
|
commandInfo += getCommandColor() + " {" + permission + "}";
|
||||||
}
|
}
|
||||||
sender.sendMessage(commandInfo);
|
sender.sendMessage(commandInfo);
|
||||||
|
Loading…
Reference in New Issue
Block a user