Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. on join:
  2. if {credits::%player's uuid%} is not set:
  3. set {credits::%player's uuid%} to 0
  4.  
  5. on death:
  6. if attacker is a player:
  7. give 1 diamond named "&b+10 Credits &7(Right-Click)" to attacker
  8.  
  9. on right click of diamond:
  10. if player's tool is named "&b+10 Credits &7(Right-Click)"
  11. add 10 to {credits::%player's uuid%}
  12. send "&b&l10 Credits have been added to your current credit balance."
  13.  
  14. on unstore:
  15. if inventory name of player's current inventory is "&b&lCREDITS":
  16. cancel event
  17. on store:
  18. if inventory name of player's current inventory is "&b&lCREDITS":
  19. cancel event
  20. on inventory click:
  21. if inventory name of player's current inventory is "&b&lCREDITS":
  22. cancel event
  23.  
  24. on inventory click:
  25. if inventory name of player's current inventory is "&6&lItem Enchanting":
  26. if name of clicked item is "&1Blue Tag Change":
  27. if {credits::%player's uuid%} is greater than or equal to 100:
  28. set the player's tablist name to "&1%name of player%"
  29. subtract 100 from {credits::%player's uuid%}
  30. cancel event
  31. if name of clicked item is "&4Red Tag Change":
  32. if {credits::%player's uuid%} is greater than or equal to 100:
  33. set the player's tablist name to "&5%name of player%"
  34. subtract 100 from {credits::%player's uuid%}
  35. cancel event
  36. if name of clicked item is "&4Green Tag Change":
  37. if {credits::%player's uuid%} is greater than or equal to 100:
  38. set the player's tablist name to "&2name of player%"
  39. subtract 100 from {credits::%player's uuid%}
  40. cancel event
  41. if name of clicked item is "&eYellow Tag Change":
  42. if {credits::%player's uuid%} is greater than or equal to 100:
  43. set the player's tablist name to "&e%name of player%"'
  44. subtract 100 from {credits::%player's uuid%}
  45. cancel event
  46.  
  47.  
  48. command /credits:
  49. trigger:
  50. open chest with 3 rows named "&b&lCREDITS" to player
  51. wait 1 tick
  52. set slot 0 of player's current inventory to diamond named "&b&lCREDITS" with lore "&7Credits: &f%{credits::%player's uuid%}%"
  53. set slot 2 of player's current inventory to blue wool "&1Blue Tag Change" with lore "&7Click to change your tag to &1Blue&7.||&7Cost: &f100 credits"
  54. set slot 3 of player's current inventory to red wool "&4Red Tag Change" with lore "&7Click to change your tag to &4Red&7.||&7Cost: &f100 credits"
  55. set slot 4 of player's current inventory to blue wool "&2Green Tag Change" with lore "&7Click to change your tag to &2Green&7.||&7Cost: &f100 credits"
  56. set slot 5 of player's current inventory to blue wool "&eYellow Tag Change" with lore "&7Click to change your tag to &eYellow&7.||&7Cost: &f100 credits"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement