Organized

Warn [SK]

Aug 31st, 2017
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. #/warn
  2.  
  3. function warnSlotGUI(p: player, p2: player, i: int, item: text, t: text):
  4. create a gui slot {_i} of {_p} with ("%{_item}%" parsed as item) named " {@A} {@N}Warn Reason:" with lore " {@A} &c%{_t}%" to close then run {_p} command "wac %{_p2}% %{_t}%"
  5.  
  6.  
  7.  
  8. command /warn <offlineplayer>:
  9. usage: /warn <player/*>
  10. aliases: /wa
  11. trigger:
  12. {si::on::%sender%} is set
  13. if arg 1 is "*":
  14. set {_p} to sender
  15. else:
  16. if arg-1 is online:
  17. set {_p} to arg-1
  18. else:
  19. sendError(sender, "'%arg 1%' is not online")
  20. stop
  21. if {si::on::%arg-1%} is set:
  22. sendError(sender, "'%arg 1%' is spectating")
  23. stop
  24. open chest with 5 rows named "{@UHC} Warn" to player
  25. loop integers from 0 to 44:
  26. format slot loop-integer of {_p} with yellow stained glass pane named "&0ⓑ" to be unstealable
  27. warnSlotGUI(sender, {_p}, 10, "diamond ore", "Mining at Meetup")
  28. warnSlotGUI(sender, {_p}, 11, "grass block", "Go To Surface")
  29. warnSlotGUI(sender, {_p}, 12, "iron sword", "Stalking (Leave Cave)")
  30. warnSlotGUI(sender, {_p}, 13, "cobblestone", "Forting & Camping at Meetup")
  31. warnSlotGUI(sender, {_p}, 14, "sign item", "Chat Offence")
  32. warnSlotGUI(sender, {_p}, 15, "iron pickaxe", "Illegal Mining")
  33. warnSlotGUI(sender, {_p}, 16, "lead", "Go To 0.0")
  34. warnSlotGUI(sender, {_p}, 19, "iron boots", "Running from Meetup")
  35. warnSlotGUI(sender, {_p}, 20, "name tag", "No Cross Teaming")
  36. warnSlotGUI(sender, {_p}, 21, "golden apple item", "Final Heal Happened")
  37. warnSlotGUI(sender, {_p}, 22, "iron pickaxe", "Y32 -» Y5 -» Y32")
  38. warnSlotGUI(sender, {_p}, 23, "grass block", "Towering/Skybasing at Meetup")
  39. warnSlotGUI(sender, {_p}, 24, "snowball", "Camping Mountains")
  40. warnSlotGUI(sender, {_p}, 25, "stone block", "Camping Caves")
  41. warnSlotGUI(sender, {_p}, 28, "iron door", "Last Chance")
  42.  
  43. command /wac <player> <text>:
  44. trigger:
  45. {si::on::%sender%} is set
  46. loop all players:
  47. {si::on::%loop-player%} is set
  48. if arg 1 is sender:
  49. send "&c&o(%sender% Warned all players:: %arg 2%!)" to loop-player
  50. else:
  51. send "&c&o(%sender% Warned %arg 1%: %arg 2%!)" to loop-player
  52. if arg 1 is sender:
  53. loop all players:
  54. send loop-player title "{@A} &c&lWarned! {@AA}" with subtitle "{@N}%arg 2%" for 3 seconds
  55. send "&c%arg 2%" to loop-player
  56. else:
  57. send arg-1 title "{@A} &c&lWarned! {@AA}" with subtitle "{@N}%arg 2%" for 3 seconds
  58. send "&c%arg 2%" to arg-1
Advertisement
Add Comment
Please, Sign In to add comment