Advertisement
Guest User

Untitled

a guest
Nov 4th, 2022
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. command /activeduty [<text>]:
  2. Permission: staff.active
  3. trigger:
  4. if {vias.%player%} is not set:
  5. send "&cIf you are caught abusing this (we have logs) you will be demoted and possibly banned." to player
  6. set {vias.%player%} to 1
  7. set {loc} to location of block at location of player
  8. send "&9You toggled active mode!" to player
  9. execute console command "/fly %player% on"
  10. execute console command "tab player %player% tagsuffix &c&lON-DUTY&8-&e%arg-1%"
  11. else:
  12. send "&9You toggled active mode!" to player
  13. execute console command "/fly %player% off"
  14. wait 1 tick
  15. clear {vias.%player%}
  16. teleport player to {loc}
  17. execute console command "tab player %player% tagsuffix &f"
  18. send "&cIf you are caught abusing this (we have logs) you will be demoted and possibly banned." to player
  19. on damage:
  20. if {vias.%victim%} is set:
  21. cancel event
  22.  
  23.  
  24. command /freeze [<text>]:
  25. Permission: staff.freeze
  26. trigger:
  27. if arg-1 is set:
  28. set {_p} to "%arg-1%" parsed as player
  29. if arg-1 is online:
  30. if arg-1 has permission "staff.bypass.freeze":
  31. send "&bYou cannot freeze that person!"
  32. else:
  33. if {froze.%arg-1%} is not set:
  34. set {froze.%arg-1%} to true
  35. send "You have been frozen by %player%" to %arg-1%
  36. else if :
  37. clear {froze.%arg-1%}
  38. send "You were unfrozen by %player%" to %arg-1%
  39. on any move:
  40. if {froze.%player%} is set:
  41. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement