mirror of
https://github.com/PikaMug/Quests.git
synced 2025-02-05 07:01:51 +01:00
Add getter methods to command listener
This commit is contained in:
parent
68e99ac96f
commit
588902e81c
@ -58,8 +58,8 @@ import org.bukkit.inventory.meta.ItemMeta;
|
||||
|
||||
public class CmdExecutor implements CommandExecutor {
|
||||
private final Quests plugin;
|
||||
public HashMap<String, Integer> commands = new HashMap<String, Integer>();
|
||||
public HashMap<String, Integer> adminCommands = new HashMap<String, Integer>();
|
||||
private Map<String, Integer> commands = new HashMap<String, Integer>();
|
||||
private Map<String, Integer> adminCommands = new HashMap<String, Integer>();
|
||||
|
||||
public CmdExecutor(Quests plugin) {
|
||||
this.plugin = plugin;
|
||||
@ -145,6 +145,14 @@ public class CmdExecutor implements CommandExecutor {
|
||||
adminCommands.put("reload", 1); // reload
|
||||
}
|
||||
}
|
||||
|
||||
public Map<String, Integer> getCommands() {
|
||||
return commands;
|
||||
}
|
||||
|
||||
public Map<String, Integer> getAdminCommands() {
|
||||
return adminCommands;
|
||||
}
|
||||
|
||||
public String checkCommand(String cmd, String[] args) {
|
||||
if (cmd.equalsIgnoreCase("quest") || args.length == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user