Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. Plugin p = addon.getPlugin();
  2.  
  3.  
  4. System.out.println(p.getDescription().getCommands().size());
  5. Map<String, Map<String, Object>> map = p.getDescription().getCommands();
  6.  
  7. for (Entry<String, Map<String, Object>> entry : map.entrySet()) {
  8. System.out.println(entry.getKey() + "/" + entry.getValue());
  9.  
  10. if (entry.getKey().toString().equalsIgnoreCase("top"))
  11. System.out.println(addon.getPlugin().getDescription().getCommands().remove(entry.getKey()));
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement