Advertisement
BaneOfSmite

Untitled

Dec 26th, 2017
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. options:
  2. P: &8[&e&lPerma&1&lKill&f&8]
  3.  
  4. command /permakill [<text>] [<world>]:
  5. permission: skript.op
  6. trigger:
  7. if arg 1 is "enable":
  8. if arg 2 is set:
  9. set {permakill} to true
  10. message "{@P} &bPerma&0Kill&7 is now &aenabled&7!"
  11. make player execute command "/permaday"
  12. delete {permakill:time::*}
  13. set {permakill:time::%arg-2%} to "day"
  14. set {_tp} to location of player
  15. set {_world} to arg-2
  16. teleport the command sender to the spawn point of {_world}
  17. make player execute command "/gamerule doDaylightCycle false"
  18. set time of player's world to 12:00
  19. teleport the player to {_tp}
  20. stop
  21. message "/permakill [enable/disable] [world]"
  22. stop
  23. if arg 1 is "disable":
  24. set {permakill} to false
  25. message "{@P} &bPerma&0Kill&7 is now &cdisabled&7!"
  26. delete {permakill:time::*}
  27. stop
  28. message "/permakill [enable/disable] [world]"
  29.  
  30. on death of player:
  31. if {permakill} is true:
  32. if player is not in "world":
  33. if {permakill:time::%player's world%} is not set:
  34. set {permakill:time::%player's world%} to "day"
  35. if {permakill:time::%player's world%} is "day":
  36. set {permakill:time::%player's world%} to "night"
  37. set time of player's world to 24:00
  38. stop
  39. if {permakill:time::%player's world%} is "night":
  40. set {permakill:time::%player's world%} to "day"
  41. set time of player's world to 12:00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement