From e238a4475fdc2002dfbbacbb224fb9f28a204d7d Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Sat, 1 Jul 2017 17:00:21 -0400 Subject: [PATCH] made stuff not break description hello okay? --- plugin.yml | 2 +- .../presents/dictionary/config/LoadConfig.java | 14 +++++++------- target/classes/plugin.yml | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/plugin.yml b/plugin.yml index d37604d..e396c88 100644 --- a/plugin.yml +++ b/plugin.yml @@ -3,7 +3,7 @@ name: ButtonPresents version: 0.0.1 commands: - hello: + dictionary: description: A set of Hello World commands and listeners, type in /hello to see subcommands rtp: description: A command that allows players to randomly teleport across the map \ No newline at end of file diff --git a/src/main/java/buttondevteam/presents/dictionary/config/LoadConfig.java b/src/main/java/buttondevteam/presents/dictionary/config/LoadConfig.java index e27f028..07590a0 100644 --- a/src/main/java/buttondevteam/presents/dictionary/config/LoadConfig.java +++ b/src/main/java/buttondevteam/presents/dictionary/config/LoadConfig.java @@ -4,22 +4,22 @@ package buttondevteam.presents.dictionary.config; import java.util.List; -import org.bukkit.command.CommandSender; +import org.bukkit.entity.Player; import buttondevteam.lib.chat.CommandClass; -import buttondevteam.presents.architecture.commands.UniversalCommand; +import buttondevteam.presents.architecture.commands.ModCommand; -@CommandClass(path = "dictionary load") -public class LoadConfig extends UniversalCommand { +@CommandClass(modOnly=true, path = "dictionary load") +public class LoadConfig extends ModCommand { @Override - public boolean OnCommand(CommandSender sender, String alias, String[] args) { + public boolean OnCommand(Player player, String alias, String[] args) { if (args.length > 1 && args[0].toLowerCase().contains("debug")){ - sender.sendMessage("Data Type: " + this.getPlugin().getConfig().get("hellosave").getClass().toString()); + player.sendMessage("Data Type: " + this.getPlugin().getConfig().get("hellosave").getClass().toString()); } List mylist = this.getPlugin().getConfig().getStringList("hellosave"); for(String string : mylist){ - sender.sendMessage(string); + player.sendMessage(string); } return true; } diff --git a/target/classes/plugin.yml b/target/classes/plugin.yml index d37604d..e396c88 100644 --- a/target/classes/plugin.yml +++ b/target/classes/plugin.yml @@ -3,7 +3,7 @@ name: ButtonPresents version: 0.0.1 commands: - hello: + dictionary: description: A set of Hello World commands and listeners, type in /hello to see subcommands rtp: description: A command that allows players to randomly teleport across the map \ No newline at end of file