From 5e85dfd3e4c007874db4d72d2f9dcf44f3408d53 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Fri, 5 Aug 2022 14:15:30 +0200 Subject: [PATCH] Displays no permission required as None instead of null --- .../command/CommandBooksWithoutBorders.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/knarcraft/bookswithoutborders/command/CommandBooksWithoutBorders.java b/src/main/java/net/knarcraft/bookswithoutborders/command/CommandBooksWithoutBorders.java index d66c729..63a9af7 100644 --- a/src/main/java/net/knarcraft/bookswithoutborders/command/CommandBooksWithoutBorders.java +++ b/src/main/java/net/knarcraft/bookswithoutborders/command/CommandBooksWithoutBorders.java @@ -104,6 +104,9 @@ public class CommandBooksWithoutBorders implements TabExecutor { String commandInfo = "\n" + getCommandColor() + pluginCommand.getUsage().replace("", pluginCommand.getName()) + ": " + getSuccessColor() + pluginCommand.getDescription(); if (sender.hasPermission("bookswithoutborders.admin")) { + if (permission == null) { + permission = "None"; + } commandInfo += getCommandColor() + " {" + permission + "}"; } sender.sendMessage(commandInfo);