Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on break:
- if event-block is in the region "block":
- set {blocks::%location of event-block%} to type of event-block
- on place:
- if event-block is in the region "block":
- add event-block to {place::*}
- command /refill:
- permission: skript.admin
- trigger:
- loop {place::*}:
- set block at loop-value to air
- loop {blocks::*}:
- set {_loc::*} to substring of loop-index from 7 to length of loop-index split at ","
- set {_x} to {_loc::1} parsed as number
- set {_y} to {_loc::2} parsed as number
- set {_z} to {_loc::3} parsed as number
- set block at location ({_x}, {_y}, {_z}) to loop-value
- delete {place::*}
- delete {break::*}
- on damage of player:
- if {red::*} contains attacker:
- if {red::*} contains victim:
- cancel event
- if {blue::*} contains attacker:
- if {blue::*} contains victim:
- cancel event
- on join:
- teleport player to location (-1525, 9, -2283)
- on death of player:
- quit(victim)
- if {red::*} contains attacker:
- add 1 to {kill.r}
- else if {blue::*} contains attacker:
- add 1 to {kill.b}
- add 1 to {kill.%attacker%}
- on quit:
- quit(player)
- on respawn:
- set player's gamemode to victim
- command /team:
- permission: skript.admin
- trigger:
- loop all players:
- if size of {red::*} is 0:
- add loop-player to {red::*}
- send "&c&lYou are Red Team!" to loop-player
- if size of {red::*} = size of {blue::*}:
- send "&c&lYou are Red Team!" to loop-player
- add loop-player to {red::*}
- if size of {red::*} > size of {blue::*}:
- send "&9&lYou are Blue Team!" to loop-player
- teleport {blue::*} to location (-1635, 79, -2238)
- teleport {red::*} to location (-1635, 79, -2176)
- tab(loop-player)
- score(loop-player)
- command /gamestop:
- permission: skript.admin
- trigger:
- set {kill.r} to 0
- set {kill.b} to 0
- delete {blue::*}
- delete {red::*}
- loop all players:
- set {kill.%loop-player%} to 0
- set loop-player's gamemode to survival
- wipe loop-player's sidebar
- function score(s: player):
- wipe {_s}'s sidebar
- set name of sidebar of {_s} to "&e&lTHE WALLS"
- set score "&b" in sidebar of {_s} to 10
- set score "&fTime: &a20:00" in sidebar of {_s} to 9
- set score "&d" in sidebar of {_s} to 8
- set score "&f青チーム 生き残り: &a%size of {blue::*}%" in sidebar of {_s} to 7
- set score "&f赤チーム 生き残り: &a%size of {red::*}%" in sidebar of {_s} to 6
- set score "&e" in sidebar of {_s} to 5
- set score "&fキル数: &a%{kill.%{_s}%}%" in sidebar of {_s} to 4
- if {red::*} contains {_s}:
- set score "&fチームのキル数: &a%{kill.r}%" in sidebar of {_s} to 4
- else if {blue::*} contains {_s}:
- set score "&fチームのキル数: &a%{kill.b}%" in sidebar of {_s} to 4
- set score "&c" in sidebar of {_s} to 2
- set score "&ePlayerrealms.com" in sidebar of {_s} to 1
- function quit(d: player):
- if {red::*} contains {_d}:
- remove {_d} from {red::*}
- loop all players:
- score(loop-player)
- else if {blue::*} contains {_d}:
- remove {_d} from {blue::*}
- score(loop-player)
- function tab(t: player):
- if {red::*} contains {_t}:
- set {_t}'s nametag to "&c%{_t}%"
- set {_t}'s tab list to "&c%{_t}%"
- set {_t}'s display name to "&c%{_t}%"
- else if {blue::*} contains {_t}:
- set {_t}'s nametag to "&9%{_t}%"
- set {_t}'s tab list to "&9%{_t}%"
- set {_t}'s display name to "&9%{_t}%"
Add Comment
Please, Sign In to add comment