Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- #- Prefix before all broadcasts -#
- Pre: &9UHC&c>> &9
- #- Permission for hosts -#
- HostPerm: skript.op
- #- Message for not having host permissions -#
- NotHostMess: No permission
- variables:
- {UHCMatch} = false
- #- A UHC run skript -#
- command /startuhc <integer> <integer>:
- permission: {@HostPerm}
- permission message: {@NotHostMess}
- usage: "/startuhc <time until PVP in minutes> <time until meetup in minutes>"
- executable by: players
- trigger:
- if arg 1 is less than 0:
- message "Times cannot be negative!" to the player
- stop trigger
- if arg 2 is less than 0:
- message " Times cannot be negative!" to the player
- stop trigger
- wait 4 second
- execute console command "/timer cancel"
- execute console command "/killboardoff"
- broadcast "{@Pre} Game Starting in: &43"
- execute console command "/sound random.anvil_land"
- wait 1 second
- broadcast "{@Pre} Game Starting in: &62"
- execute console command "/sound random.anvil_land"
- wait 1 second
- broadcast "{@Pre} Game Starting in: &21"
- execute console command "/sound random.anvil_land"
- execute console command "/freeze"
- wait 1 second
- broadcast "{@Pre} Game Starting Now!"
- loop all players:
- heal the loop-player
- set the loop-player's hunger bar to 20
- clear the loop-player's inventory
- execute console command "/sound mob.wither.death"
- execute console command "/killboard"
- execute console command "/pvp global off"
- execute console command "/feature on PlayerHeads"
- execute console command "/feature off PotionNerfs"
- execute console command "/feature off Footprints"
- execute console command "/feature on GoldenHeads"
- execute console command "/time 20ticks"
- execute console command "/megabutcher"
- set {_pvpseconds} to arg 1*60
- if arg 2 is not 0:
- set {_meetup} to (arg 2-arg 1)*60
- if arg 1 is not 0:
- execute console command "/timer %{_pvpseconds}% &9PVP enabled in&c>>&9"
- loop ({_pvpseconds}+1)*20 times:
- wait 1 tick
- execute console command "/sound mob.enderdragon.growl"
- broadcast "{@Pre} PvP is now on, good luck!"
- execute console command "/pvp global on"
- if arg 2 is not 0:
- execute console command "/timer %{_meetup}% &9Meetup in&c>>&9"
- loop ({_meetup}+1)*20 times:
- wait 1 tick
- execute console command "/sound mob.enderdragon.growl"
- broadcast "{@Pre} It is time to head to &cmeet-up&r!"
- execute console command "/timer cancel"
- set {UHCMatch} to false
- #- Little bit of code that fixes bad Essentials config -#
- on respawn:
- wait 1 tick
- execute console command "/xp -999999L %player%"
- on damage of player:
- attacker is a player:
- projectile exists
- wait 1 tick
- victim is not dead:
- message "{@Pre} The player you just shot is now at &c%health of victim% hearts&9." to the attacker
- command /h [<player>]:
- executable by: players
- trigger:
- arg 1 is not set:
- message "{@Pre} You have &c%health of player% hearts remaining&9." to the player
- stop trigger
- message "{@Pre} &c%arg 1% &9has &c%health of arg 1% hearts remaining&9." to the player
- command /sound <text>:
- permission: skript.scatter.playsound
- trigger:
- loop all players:
- command "/playsound %arg 1% %loop-player%"
- command /megabutcher:
- permission: {@HostPerm}
- permission message: {@NotHostMess}
- usage: "/megabutcher"
- executable by: players, console
- trigger:
- command "/butcher"
- wait 0.5 second
- execute console command "/butcher"
- wait 0.5 second
- execute console command "/butcher"
- wait 0.5 second
- execute console command "/butcher"
- wait 0.5 second
- execute console command "/butcher"
- wait 0.5 second
- execute console command "/butcher"
- wait 0.5 second
- execute console command "/butcher"
- wait 0.5 second
- execute console command "/butcher"
- wait 0.5 second
- execute console command "/butcher"
- wait 0.5 second
- execute console command "/butcher"
- wait 0.5 second
- command "/butcher"
- wait 0.5 second
- command "/butcher"
- wait 0.5 second
- command "/butcher"
- broadcast "{@Pre} Butchering has finished, &casking to butcher &9at this point &cwill get you muted&9!"
- #- Setup for the Kills Scoreboard -#
- command /killboard:
- permission: skript.op
- permission message: Insufficient permissions
- usage: "/killboard"
- trigger:
- execute console command "/scoreboard objectives add skkills playerKillCount &9Kills"
- execute console command "/scoreboard objectives setdisplay sidebar skkills"
- message "{@Pre} Killboard enabled!"
- command /killboardoff:
- permission: skript.op
- permission message: Insufficient permissions
- usage: "/killboardoff"
- trigger:
- execute console command "/scoreboard objectives remove skkills"
- execute console command "/scoreboard objectives setdisplay sidebar off"
- message "{@Pre} Killboard disabled!"
- on death of player:
- execute console command "/scoreboard players reset %victim%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement