Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getPlayerGroup(p: offlineplayer) :: text:
- "%configuration section ""users"" get of ""plugins/PermissionsEx/permissions.yml""%" contain "-":
- set {_p} to uuid of {_p}
- set {_group::*} to value list "users.%{_p}%.group" get of "plugins/PermissionsEx/permissions.yml"
- return {_group::1}
- function initiateScoreboard(p: player, t: text):
- {_t} is "start":
- set {_rank} to getPlayerGroup({_player})
- wipe {_p}'s sidebar
- set name of sidebar of {_p} to "&8» &9KitPvPV6 &8«"
- set score "&2" in sidebar of {_p} to 27
- set score "&9Name&8 » &7%{_p}%" in sidebar of {_p} to 26
- set score "&8" in sidebar of {_p} to 25
- set score "&9Rank&8 » %{_rank}%" in sidebar of {_p} to 24
- set score "&8&m---------------&2" in sidebar of {_p} to 23
- set score "&9Kills&8 »&7 %{totalkills.%{_p}%}%" in sidebar of {_p} to 22
- set score "&6" in sidebar of {_p} to 21
- set score "&9&8 » &9%{totaldeaths.%{_p}%}%" in sidebar of {_p} to 20
- set score "&3" in sidebar of {_p} to 19
- set score "&9KDR&8 »&9 &9%{stats.kills.%{_p}%}/{stats.deaths.%{_p}%}%" in sidebar of {_p} to 18
- set score "&8&m---------------&3" in sidebar of {_p} to 17
- {_t} is "stop":
- wipe {_p}'s sidebar
- on join:
- while player is online:
- wait 5 ticks
- initiateScoreboard(player, "start")
- wait 10 seconds
- on first join:
- set {totalkills.%player%} to 0
- set {totaldeaths.%player%} to 0
- set {currentkillstreak.%player%} to 0
- set {bestkillstreak.%player%} to 0
- on death:
- victim is a player
- attacker is a player
- add 1 to {totalkills.%attacker%}
- add 1 to {totaldeaths.%victim%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement