Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement