Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /sd <integer> <number> <integer> <number> <world>:
- usage: /sd <radius> <x center> <y center> <z center> <world>
- aliases: /suddendeath
- permission: skript.sd
- trigger:
- teleport the command sender to the spawn point of (arg-5)
- command sender command "/tp %command sender% %argument 2% %argument 3% %argument 4%"
- broadcast "&d[SuddenDeath] &41 Minute &dto Sudden Death - Rules"
- broadcast "&aDamage is off for the first 30 seconds."
- broadcast "&aYou may not go underground. Tell the host if you spawn there."
- broadcast "&aYou may not hide and wait for others to kill each other."
- command sender command "/pvpoff"
- command sender command "/permaday %argument 5%"
- wait 30 seconds
- broadcast "&d[SuddenDeath] &430 seconds &duntil Sudden Death"
- wait 10 seconds
- broadcast "&d[SuddenDeath] &420 seconds &duntil Sudden Death"
- wait 10 seconds
- broadcast "&d[SuddenDeath] &410 seconds &duntil Sudden Death"
- broadcast "&d[SuddenDeath] Creating Sudden Death arena..."
- command sender command "/butcher"
- command sender command "//pos1 %argument 2%,0,%argument 4%"
- command sender command "//pos2 %argument 2%,0,%argument 4%"
- command sender command "//expand %argument 1% N"
- command sender command "//expand %argument 1% S"
- command sender command "//expand %argument 1% E"
- command sender command "//expand %argument 1% W"
- command sender command "//expand vert"
- command sender command "//walls glass"
- command sender command "/region define sd"
- command sender command "/region flag sd invincible allow"
- command sender command "/region flag sd build allow"
- wait 5 seconds
- broadcast "&d[SuddenDeath] Teleporting to Sudden Death..."
- loop all players:
- teleport the loop-player to the spawn point of (arg-5)
- execute console command "/spreadplayers %arg-2% %arg-4% %(arg-1 / (size of all players))% %arg-1% true %loop-player%"
- set {_pos::%loop-player%} to location (loop-player's x coordinate, 256, loop-player's z coordinate)
- while block at location 1 below {_pos::%loop-player%} is air:
- set {_pos::%loop-player%} to (location 1 below {_pos::%loop-player%})
- teleport the command sender to {_pos}
- command sender command "/wb shape square"
- command sender command "/wb set %argument 1% %argument 2% %argument 4%"
- broadcast "&a[SuddenDeath] 30 second peace begins now. Tell the host if you are underground."
- wait 10 seconds
- broadcast "&a[SuddenDeath] 20 Seconds until PvP"
- wait 10 seconds
- broadcast "&a[SuddenDeath] 10 Seconds until PvP"
- wait 5 seconds
- broadcast "&a[SuddenDeath] 5 Seconds until PvP"
- wait 1 second
- broadcast "&a[SuddenDeath] 4 Seconds until PvP"
- wait 1 second
- broadcast "&a[SuddenDeath] 3 Seconds until PvP"
- wait 1 second
- broadcast "&a[SuddenDeath] 2 Seconds until PvP"
- wait 1 second
- broadcast "&a[SuddenDeath] 1 Second until PvP"
- wait 1 second
- command sender command "/region flag sd invincible deny"
- command sender command "/pvpon"
- broadcast "&d[SuddenDeath] Sudden Death begins now!"
- command sender command "/region remove sd"
Advertisement
Add Comment
Please, Sign In to add comment