Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- P: &8[&e&lPerma&1&lKill&f&8]
- command /permakill [<text>] [<world>]:
- permission: skript.op
- trigger:
- if arg 1 is "enable":
- if arg 2 is set:
- set {permakill} to true
- message "{@P} &bPerma&0Kill&7 is now &aenabled&7!"
- make player execute command "/permaday"
- delete {permakill:time::*}
- set {permakill:time::%arg-2%} to "day"
- set {_tp} to location of player
- set {_world} to arg-2
- teleport the command sender to the spawn point of {_world}
- make player execute command "/gamerule doDaylightCycle false"
- set time of player's world to 12:00
- teleport the player to {_tp}
- stop
- message "/permakill [enable/disable] [world]"
- stop
- if arg 1 is "disable":
- set {permakill} to false
- message "{@P} &bPerma&0Kill&7 is now &cdisabled&7!"
- delete {permakill:time::*}
- stop
- message "/permakill [enable/disable] [world]"
- on death of player:
- if {permakill} is true:
- if player is not in "world":
- if {permakill:time::%player's world%} is not set:
- set {permakill:time::%player's world%} to "day"
- if {permakill:time::%player's world%} is "day":
- set {permakill:time::%player's world%} to "night"
- set time of player's world to 24:00
- stop
- if {permakill:time::%player's world%} is "night":
- set {permakill:time::%player's world%} to "day"
- set time of player's world to 12:00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement