Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. var tag = "%dogtags_current_tag%";
  2.  
  3. function getTag(tag) {
  4.  
  5. if (tag.equals("")) {
  6. if (BukkitPlayer.isOp()) {
  7. return "";
  8. }
  9. if (BukkitPlayer.hasPermission("chatformat.patron")) {
  10. return "&8[&cPatron&8]&c";
  11. }
  12. if (BukkitPlayer.hasPermission("chatformat.benefactor")) {
  13. return "&8[&aBenefactor&8]&a";
  14. }
  15. if (BukkitPlayer.hasPermission("chatformat.supreme")) {
  16. return "&8[&eSupreme&8]&e";
  17. }
  18. if (BukkitPlayer.hasPermission("chatformat.donor")) {
  19. return "&8[&dDonor&8]&d";
  20. }
  21. if (BukkitPlayer.hasPermission("chatformat.default")) {
  22. return "&8[&7Member&8]&f";
  23. }
  24. return "";
  25. }
  26. return tag;
  27. }
  28.  
  29. getTag(tag);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement