Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #-Options-#
- options:
- name: >> Your killboards name here <<
- #-Command-#
- command /killboard <text>:
- usage: "/killboard <on:off>"
- description: Toggles the Kill Scoreboard!
- permission: skript.op
- trigger:
- arg 1 is "on":
- set {killboard} to true
- broadcast "&7[&cUHC&7] &2Kill Scoreboard&a enabled!"
- execute console command "scoreboard objectives add Kills playerKillCount {@name}"
- wait 1 second
- execute console command "scoreboard objectives setdisplay sidebar Kills"
- arg 1 is "off":
- set {killboard} to false
- broadcast "&7[&cUHC&7] &2Kill Scoreboard&c disabled!"
- execute console command "scoreboard objectives remove Kills"
- #Removes player from wl, clears xp, auto kicks after 60 secs, clears players stats at killboard and leaves from team (uses d4 team manager)
- on death of player:
- if {killboard} is true:
- attacker is player:
- command "/whitelist remove %victim%"
- loop 5 times:
- execute console command "/xp -999999999 %victim%"
- set {ratetime::%victim%} to true
- send "{@h} &fYou have 60 seconds to say goodbye!" to victim
- wait 10 seconds
- execute console command "/scoreboard players reset %victim%"
- set {_TeamNumber} to {Teams.InTeam::%victim%}
- delete {Teams.InTeam::%victim%}
- remove victim from {Team.%{_TeamNumber}%::*}
- command "/scoreboard teams leave %victim%"
- wait 50 seconds
- kick victim due to "&4&lGood Game! Better luck next time!"
- delete {rated::%victim%}
- delete {ratetime::%victim%}
- #Does same things but adds one point to PvE
- else:
- execute console command "/scoreboard players add &c&lPvE Kills 1"
- loop 5 times:
- execute console command "/xp -999999999 %victim%"
- command "/whitelist remove %victim%"
- set {ratetime::%victim%} to true
- send "{@h} &fYou have 60 seconds to say goodbye!" to victim
- wait 10 seconds
- execute consolecommand "/scoreboard players reset %victim%"
- set {_TeamNumber} to {Teams.InTeam::%victim%}
- delete {Teams.InTeam::%victim%}
- remove victim from {Team.%{_TeamNumber}%::*}
- command "/scoreboard teams leave %victim%"
- wait 50 seconds
- kick victim due to "&4&lGood Game! Better luck next time!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement