SHARE
TWEET

Untitled

a guest May 22nd, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top