Advertisement
Guest User

Untitled

a guest
Jan 16th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. variables:
  2. {name} = ""
  3. {spell} = ""
  4. {reason} = ""
  5.  
  6. command /magicsupport:
  7. permission: support.*
  8. permission message: &9You do not have permission to use this command. Please ask administration if this is incorrect.
  9. trigger:
  10. open chest with 3 rows named "&9Magic Support &cby Augustine" to player
  11. ###format slot 11 of player with blaze rod named "&eForget someones' spell." to run [make player execute "magicsupportstep2"]
  12. format slot 13 of player with cyan dye named "&eTeach a Spell." to run [make player execute "playerlist"]
  13. ###format slot 15 of player with stick named "&4Report a spell." to run [make player execute "magicsupportstep2"]
  14.  
  15.  
  16. function playerlist(a: player):
  17. open virtual chest inventory with size 6 named "&9Playing assigning spell to:" to {_a}
  18. set {_n} to 0
  19. loop all players:
  20. set {_p} to loop-player
  21. format a gui slot {_n} of {_a} with {_p}'s skull named "&6&l%{_p}%"
  22. add 1 to {_n}
  23. wait 1 tick
  24.  
  25. command /playerlist:
  26. trigger:
  27. playerlist(player)
  28.  
  29.  
  30.  
  31. What I want to do is to save the name on the right clicked player skull to {name}, and use it for another command.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement