SHARE
TWEET

Untitled

a guest Jun 19th, 2017 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public List<Tag> getTags() {
  2.         if (SpongeCubeAPI.instance.playersCache.containsKey(this.player)) {
  3.             PlayerCache playerCache = SpongeCubeAPI.instance.playersCache.get(this.player);
  4.             String perm_format = "shop.tag.";
  5.             String perms = getPerms();
  6.  
  7.             List<Tag> tags = new ArrayList<>();
  8.  
  9.             for (Tag tag : Tag.values()) {
  10.                 if (hasPerms(perm_format + tag.getNum())) {
  11.                     tags.add(tag);
  12.                 }
  13.             }
  14.             return tags;
  15.         }
  16.         return null;
  17.     }
RAW Paste Data
Top