From d9cc1705fd9f74eb7c2b9d2324a3c76227a1126a Mon Sep 17 00:00:00 2001 From: BuildTools <18whitechristop@gmail.com> Date: Tue, 30 May 2017 18:11:35 -0700 Subject: [PATCH] fix model commands, fix stats command description, remove lore from tokens button --- .../main/java/tc/oc/api/minecraft/model/ModelCommands.java | 2 +- .../main/java/tc/oc/commons/bukkit/stats/StatsCommands.java | 4 ++-- PGM/src/main/java/tc/oc/pgm/tokens/gui/MainTokenButton.java | 4 +--- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/API/minecraft/src/main/java/tc/oc/api/minecraft/model/ModelCommands.java b/API/minecraft/src/main/java/tc/oc/api/minecraft/model/ModelCommands.java index 51c24df..aeed52a 100644 --- a/API/minecraft/src/main/java/tc/oc/api/minecraft/model/ModelCommands.java +++ b/API/minecraft/src/main/java/tc/oc/api/minecraft/model/ModelCommands.java @@ -23,7 +23,7 @@ import tc.oc.commons.core.commands.NestedCommands; import tc.oc.commons.core.formatting.StringUtils; import tc.oc.minecraft.api.command.CommandSender; -class ModelCommands implements NestedCommands { +public class ModelCommands implements NestedCommands { public static class Parent implements Commands { @Command( diff --git a/Commons/bukkit/src/main/java/tc/oc/commons/bukkit/stats/StatsCommands.java b/Commons/bukkit/src/main/java/tc/oc/commons/bukkit/stats/StatsCommands.java index cefb7aa..ce15ea0 100644 --- a/Commons/bukkit/src/main/java/tc/oc/commons/bukkit/stats/StatsCommands.java +++ b/Commons/bukkit/src/main/java/tc/oc/commons/bukkit/stats/StatsCommands.java @@ -37,8 +37,8 @@ public class StatsCommands implements Commands { @Command( aliases = { "stats"}, - usage = "", - desc = "Shows when a player was last seen", + usage = "[player]", + desc = "Shows a player's stats", min = 0, max = 1 ) diff --git a/PGM/src/main/java/tc/oc/pgm/tokens/gui/MainTokenButton.java b/PGM/src/main/java/tc/oc/pgm/tokens/gui/MainTokenButton.java index e50383e..e0dd24b 100644 --- a/PGM/src/main/java/tc/oc/pgm/tokens/gui/MainTokenButton.java +++ b/PGM/src/main/java/tc/oc/pgm/tokens/gui/MainTokenButton.java @@ -21,9 +21,7 @@ public class MainTokenButton extends Button { @Override public ItemCreator getIcon() { return new ItemCreator(Material.DOUBLE_PLANT) - .setName(Constants.PREFIX + "Tokens") - .addLore(Constants.SUBTEXT + "Open the Token Menu", - Constants.CLICK + "Right Click"); + .setName(Constants.PREFIX + "Tokens"); } @Override