ArtzifyHD

Profile

Jul 14th, 2017
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. command /openprofile <player>:
  2. executable by: console
  3. trigger:
  4. open chest with 1 row named "&7%arg-1%'s Profile" to arg-1
  5. wait 1 tick
  6. set slot 6 of arg-1's current inventory to a clock named "&7Settings" with lore "&7&oChange all your settings on the server!"
  7. set {_rank} to value of sql var "rank::%arg-1%"
  8. set slot 2 of arg-1's current inventory to a player head with nbt "{SkullOwner:""%arg-1%""}" named "&7Profile:" with lore "&7Rank: &e%{_rank}% ||&7Friends: &e%getFriends(arg-1)%&f/&e150 ||&7Coins: &e%getCoins(arg-1)%"
  9. set {_2} to value of sql var "multipliers::double::%arg-1%"
  10. set {_3} to value of sql var "multipliers::triple::%arg-1%"
  11. set {_4} to value of sql var "multipliers::quadruple::%arg-1%"
  12. loop 3 times:
  13. {_%loop-number + 1%} is "<none>"
  14. set {_%loop-number + 1%} to 0
  15. set slot 4 of arg-1's current inventory to a gold ingot named "&7Multipliers" with lore "&7Double Coins Multipliers:&e %{_2}%||&7Triple Coins Multipliers:&e %{_3}%||&7Quadruple Coins Multipliers:&e %{_4}%"
  16.  
  17. on rightclick holding a player head:
  18. name of tool of player is "&7%player%'s Profile"
  19. command "/openprofile %player%"
  20.  
  21. on inventory click:
  22. inventory name of player's current inventory is "&7%player%'s Profile"
  23. cancel the event
  24. if clicked item is a clock:
  25. loop 9 times:
  26. set slot loop-number - 1 of player's current inventory to air
  27. set inventory name of player's current inventory to "&7Game Settings"
  28. set {_messages} to value of sql var "options::messages::%player%"
  29. set {_requests} to sql var "options::friendrequests::%player%" exists
  30. set {_hidden} to value of sql var "options::hidden::%player%"
  31. if "%{_messages}%" is not set:
  32. set slot 0 of player's current inventory to a green wool named "&7Messages: &eOn"
  33. else if {_messages} is "false":
  34. set slot 0 of player's current inventory to a orange wool named "&7Messages: &eFriends-Only"
  35. else:
  36. set slot 0 of player's current inventory to a red wool named "&7Messages: &eOff"
  37. if {_requests} is true:
  38. set slot 1 of player's current inventory to a red wool named "&7Friend Requests: &eOff"
  39. else:
  40. set slot 1 of player's current inventory to a green wool named "&7Friend Requests: &eOn"
  41. if "%{_hidden}%" is "<none>":
  42. set slot 2 of player's current inventory to a green wool named "&7Players: &eOn"
  43. else if {_hidden} is "false":
  44. set slot 2 of player's current inventory to a orange wool named "&7Players: &eFriends-Only"
  45. else:
  46. set slot 2 of player's current inventory to a red wool named "&7Players: &eOff"
  47. set slot 8 of player's current inventory to a arrow named "&7Back"
Advertisement
Add Comment
Please, Sign In to add comment