diff --git a/.gradle/2.6/taskArtifacts/cache.properties.lock b/.gradle/2.6/taskArtifacts/cache.properties.lock index 35b712e..e55d926 100644 Binary files a/.gradle/2.6/taskArtifacts/cache.properties.lock and b/.gradle/2.6/taskArtifacts/cache.properties.lock differ diff --git a/.gradle/2.6/taskArtifacts/fileHashes.bin b/.gradle/2.6/taskArtifacts/fileHashes.bin index addc1aa..3b863d2 100644 Binary files a/.gradle/2.6/taskArtifacts/fileHashes.bin and b/.gradle/2.6/taskArtifacts/fileHashes.bin differ diff --git a/.gradle/2.6/taskArtifacts/fileSnapshots.bin b/.gradle/2.6/taskArtifacts/fileSnapshots.bin index 5f85321..9e931a7 100644 Binary files a/.gradle/2.6/taskArtifacts/fileSnapshots.bin and b/.gradle/2.6/taskArtifacts/fileSnapshots.bin differ diff --git a/.gradle/2.6/taskArtifacts/outputFileStates.bin b/.gradle/2.6/taskArtifacts/outputFileStates.bin index 01f7e56..e932662 100644 Binary files a/.gradle/2.6/taskArtifacts/outputFileStates.bin and b/.gradle/2.6/taskArtifacts/outputFileStates.bin differ diff --git a/.gradle/2.6/taskArtifacts/taskArtifacts.bin b/.gradle/2.6/taskArtifacts/taskArtifacts.bin index c3d63b9..d9e281e 100644 Binary files a/.gradle/2.6/taskArtifacts/taskArtifacts.bin and b/.gradle/2.6/taskArtifacts/taskArtifacts.bin differ diff --git a/src/main/java/com/karanumcoding/adamantineshield/commands/CommandMain.java b/src/main/java/com/karanumcoding/adamantineshield/commands/CommandMain.java index a244a43..195be68 100644 --- a/src/main/java/com/karanumcoding/adamantineshield/commands/CommandMain.java +++ b/src/main/java/com/karanumcoding/adamantineshield/commands/CommandMain.java @@ -22,29 +22,29 @@ public class CommandMain implements CommandExecutor { @Override public CommandResult execute(CommandSource src, CommandContext args) throws CommandException { boolean hasAnyPermission = false; - Text text = Text.of(TextColors.DARK_AQUA, "[AS] ", TextColors.YELLOW, "Available commands: ", Text.NEW_LINE); + Text text = Text.of(TextColors.DARK_AQUA, "[AS] ", TextColors.YELLOW, "Available commands: "); if (src.hasPermission(Permissions.LOOKUP.get())) { hasAnyPermission = true; - text = Text.of(text, CommandInspect.getHelpEntry(), Text.NEW_LINE, CommandLookup.getHelpEntry(), Text.NEW_LINE); + text = Text.of(text, Text.NEW_LINE, CommandInspect.getHelpEntry(), Text.NEW_LINE, CommandLookup.getHelpEntry()); } if (src.hasPermission(Permissions.FILTER.get())) { hasAnyPermission = true; - text = Text.of(text, CommandFilter.getHelpEntry(), Text.NEW_LINE); + text = Text.of(text, Text.NEW_LINE, CommandFilter.getHelpEntry()); } if (src.hasPermission(Permissions.LOOKUP.get())) { - text = Text.of(text, CommandPage.getHelpEntry(), Text.NEW_LINE, CommandNextPage.getHelpEntry(), Text.NEW_LINE, - CommandPrevPage.getHelpEntry(), Text.NEW_LINE); + text = Text.of(text, Text.NEW_LINE, CommandPage.getHelpEntry(), Text.NEW_LINE, CommandNextPage.getHelpEntry(), Text.NEW_LINE, + CommandPrevPage.getHelpEntry()); } if (src.hasPermission(Permissions.PURGE.get())) { hasAnyPermission = true; - text = Text.of(text, CommandPurge.getHelpEntry(), Text.NEW_LINE); + text = Text.of(text, Text.NEW_LINE, CommandPurge.getHelpEntry()); } if (hasAnyPermission) { - text = Text.of(text, getHelpEntry(), Text.NEW_LINE); + text = Text.of(text, Text.NEW_LINE, getHelpEntry()); } else { - text = Text.of(TextColors.DARK_AQUA, "[AS] ", TextColors.YELLOW, "AdmantineShield v", - Sponge.getPluginManager().getPlugin("adamantineshield").get().getVersion(), " by Karanum"); + text = Text.of(TextColors.DARK_AQUA, "[AS] ", TextColors.YELLOW, "AdamantineShield v", + Sponge.getPluginManager().getPlugin("adamantineshield").get().getVersion().get()); } src.sendMessage(text); @@ -52,7 +52,7 @@ public CommandResult execute(CommandSource src, CommandContext args) throws Comm } public static Text getHelpEntry() { - return Text.of(TextColors.YELLOW, "/ashield help", TextColors.AQUA, " - Shows command help"); + return Text.of(TextColors.AQUA, "/ashield help", TextColors.WHITE, " - Shows command help"); } } diff --git a/src/main/java/com/karanumcoding/adamantineshield/commands/CommandPurge.java b/src/main/java/com/karanumcoding/adamantineshield/commands/CommandPurge.java index a7849af..3bf0b2c 100644 --- a/src/main/java/com/karanumcoding/adamantineshield/commands/CommandPurge.java +++ b/src/main/java/com/karanumcoding/adamantineshield/commands/CommandPurge.java @@ -51,7 +51,7 @@ public void doPurge(CommandSource src, long before) { } public static Text getHelpEntry() { - return Text.of(TextColors.YELLOW, "/ashield purge