Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /openprofile <player>:
- executable by: console
- trigger:
- open chest with 1 row named "&7%arg-1%'s Profile" to arg-1
- wait 1 tick
- set slot 6 of arg-1's current inventory to a clock named "&7Settings" with lore "&7&oChange all your settings on the server!"
- set {_rank} to value of sql var "rank::%arg-1%"
- 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)%"
- set {_2} to value of sql var "multipliers::double::%arg-1%"
- set {_3} to value of sql var "multipliers::triple::%arg-1%"
- set {_4} to value of sql var "multipliers::quadruple::%arg-1%"
- loop 3 times:
- {_%loop-number + 1%} is "<none>"
- set {_%loop-number + 1%} to 0
- 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}%"
- on rightclick holding a player head:
- name of tool of player is "&7%player%'s Profile"
- command "/openprofile %player%"
- on inventory click:
- inventory name of player's current inventory is "&7%player%'s Profile"
- cancel the event
- if clicked item is a clock:
- loop 9 times:
- set slot loop-number - 1 of player's current inventory to air
- set inventory name of player's current inventory to "&7Game Settings"
- set {_messages} to value of sql var "options::messages::%player%"
- set {_requests} to sql var "options::friendrequests::%player%" exists
- set {_hidden} to value of sql var "options::hidden::%player%"
- if "%{_messages}%" is not set:
- set slot 0 of player's current inventory to a green wool named "&7Messages: &eOn"
- else if {_messages} is "false":
- set slot 0 of player's current inventory to a orange wool named "&7Messages: &eFriends-Only"
- else:
- set slot 0 of player's current inventory to a red wool named "&7Messages: &eOff"
- if {_requests} is true:
- set slot 1 of player's current inventory to a red wool named "&7Friend Requests: &eOff"
- else:
- set slot 1 of player's current inventory to a green wool named "&7Friend Requests: &eOn"
- if "%{_hidden}%" is "<none>":
- set slot 2 of player's current inventory to a green wool named "&7Players: &eOn"
- else if {_hidden} is "false":
- set slot 2 of player's current inventory to a orange wool named "&7Players: &eFriends-Only"
- else:
- set slot 2 of player's current inventory to a red wool named "&7Players: &eOff"
- set slot 8 of player's current inventory to a arrow named "&7Back"
Advertisement
Add Comment
Please, Sign In to add comment