Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Plugin p = addon.getPlugin();
- System.out.println(p.getDescription().getCommands().size());
- Map<String, Map<String, Object>> map = p.getDescription().getCommands();
- for (Entry<String, Map<String, Object>> entry : map.entrySet()) {
- System.out.println(entry.getKey() + "/" + entry.getValue());
- if (entry.getKey().toString().equalsIgnoreCase("top"))
- System.out.println(addon.getPlugin().getDescription().getCommands().remove(entry.getKey()));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement