Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #UHC skript
- #edited by Rainbowslasher
- options:
- #- Main Options -#
- P : &7[&9Paragon &3UHC&7]&f
- C : &f
- H : &9
- #- Other Options -#
- Error : &8[&4ERROR&8]&f
- Killboard : &7[&9Paragon &3UHC&7]&f "
- KillboardName: &9Paragon &3UHC
- #- Skript Options -#
- Permission: skript.op
- PermissionDeny: &cYou don't have the required permission.
- command /uhc [<text>] [<integer>] [<integer>]:
- permission: {@Permission}
- permission message: {@PermissionDeny}
- trigger:
- if arg-1 is not set:
- message "{@Error} Invalid syntax."
- else:
- if arg-1 is "start":
- if {UHC.Started} is not set:
- #- Timer Check -#
- if arg-2 is less than 0:
- message "{@Error} Must enter positive integer!"
- message "{@Error} You entered [{@H}%arg-2%]{@C}!"
- message "{@Error} Set [{@H}%arg-2%]{@C}to a positive number!"
- if arg-3 is less than 0:
- message "{@Error} Must enter positive integer!"
- message "{@Error} You entered [{@H}%arg-3%]{@C}!"
- message "{@Error} Set [{@H}%arg-3%] {@C}to a positive number!"
- #- Variable Declarations -#
- set {UHC.Started} to true
- set {UHC.Countdown} to true
- delete {PermaDay}
- #- Essentials -#
- make console execute command "/heal *"
- make console execute command "/feed *"
- loop all players:
- set loop-player's hunger to 20
- set loop-player's max health to 10
- clear loop-player's inventory
- #- Resetting/Commands -#
- set time to 6:00
- loop all players:
- execute console command "xp -25000L %loop-player%"
- loop-player's gamemode is not survival:
- set loop-player's gamemode to survival
- #- PreGame Commands -#
- command sender command "/killboard off"
- command sender command "/killboard on"
- command sender command "/region flag __global__ pvp deny"
- command sender command "/specinfo reset"
- command sender command "/boxremove %world of command sender%"
- #- Countdown(!) -#
- command "/title @p title {text:""Game starting in:"",color:""gold"",bold:true}"
- wait 2 seconds
- command "/title @p title {text:""5"",color:""dark_red"",bold:true}"
- command "/playsound note.pling @a 0 56 0 1000 0"
- wait 1 second
- command "/title @p title {text:""4"",color:""yellow"",bold:true}"
- command "/playsound note.pling @a 0 56 0 1000 0"
- wait 1 second
- command "/title @p title {text:""3"",color:""gold"",bold:true}"
- command "/playsound note.pling @a 0 56 0 1000 0"
- wait 1 second
- command "/title @p title {text:""2"",color:""aqua"",bold:true}"
- command "/playsound note.pling @a 0 56 0 1000 0"
- wait 1 second
- command "/title @p title {text:""1"",color:""dark_purple"",bold:true}"
- command "/playsound note.pling @a 0 56 0 1000 0"
- wait 1.5 seconds
- command "/title @p title {text:""GO!"",color:""white"",bold:true}"
- command "/playsound note.pling @a 0 56 0 1000 1.5"
- command "/playsound note.pling @a 0 56 0 1000 1.8"
- #- UnFreeze -#
- command "/freeze"
- loop all players:
- execute console command "effect %loop-player% clear"
- #- Cleanup/Final Things -#
- wait 15 seconds
- make console execute command "/heal *"
- make console execute command "/feed *"
- command "/title @p title {text:""Final Heal Given"",color:""white"",bold:false}"
- set {FirstDamage} to true
- #- Timer -#
- set {_pvpseconds} to arg 3*60
- set {_meetup} to arg 2*60
- execute console command "/timer %{_pvpseconds}% &bPvP In:"
- loop ({_pvpseconds}+1)*20 times:
- wait 1 tick
- command "/title @p title {text:""PvP Enabled"",color:""aqua"",bold:true}"
- execute console command "/aps mob.wither.shoot 2"
- make command sender execute command "/region flag __global__ pvp allow"
- if arg 2 is not 0:
- execute console command "/timer cancel"
- execute console command "/timer 60 &b Meetup is in:"
- loop ({_meetup}+1)*20 times:
- wait 1 tick
- command "/title @p title {text:""Meetup is now!"",color:""aqua"",bold:true}"
- execute console command "/aps mob.wither.shoot 2"
- stop trigger
- else:
- message "{@P} Game already in progress!"
- else if arg-1 is "end":
- if {UHC.Started} is set:
- #- Variable Declarations -#
- delete {UHC.Started}
- delete {UHC.Countdown}
- delete {PermaDay}
- delete {MuteAll}
- #- Essentials -#
- make console execute command "/heal *"
- make console execute command "/feed *"
- make console execute command "/team reset"
- loop all players:
- clear loop-player's inventory
- #- Reset/Commands -#
- command sender command "/timer cancel"
- loop all players:
- execute console command "xp-25000L %loop-player%"
- execute console command "effect %loop-player% clear"
- else:
- message "{@P} There isn't a game in progress!"
- #- Game Commands -#
- command /megabutcher:
- permission: {@Permission}
- permission message: {@PermissionDeny}
- trigger:
- loop 10 times:
- make command sender execute command "/butcher"
- wait 1 second
- wait 3 seconds
- make command sender execute command "/butcher"
- command /killboard <text>:
- permission: {@Permission}
- permission message: {@PermissionDeny}
- trigger:
- if arg 1 is "on":
- execute console command "/scoreboard objectives add kills playerKillCount {@KillboardName}"
- execute console command "/scoreboard objectives setdisplay sidebar kills"
- message "{@P} Killboard enabled!"
- else if arg 1 is "off":
- execute console command "/scoreboard objectives remove kills"
- message "{@P} Killboard disabled!"
- # Events #
- #- UHC Events -#
- on death of player:
- if {UHC.Started} is true:
- if victim is op:
- make victim execute command "/specinfo on"
- make victim execute command "/van"
- make victim execute command "/vanflag +chat"
- else:
- execute console command "/whitelist remove %victim%"
- execute console command "/spawn %victim%"
- execute console command "/scoreboard players reset %victim%"
- message "{@P} Sorry to see you have died! Please leave after saying your goodbyes." to victim
- wait 30 seconds
- execute console command "kick %event-player% GG, we hope to see you soon! o/"
- on death of player:
- attacker is a player:
- stop trigger
- else:
- execute console command "scoreboard players add &c&lPvE {@KillboardName} 1"
- on damage of player:
- {FirstDamage} is true
- set {FirstDamage} to false
- command "/say {@P}{@H} %victim% {@C}took the first damage!"
- on join:
- set join message to "&7[&a&l>&7] &8%event-player% joined"
- on quit:
- set quit message to "&7[&c&l<&7] &8%event-player% left"
- on player respawn:
- {UHC.Started} is true
- wait 3 ticks
- execute console command "mvtp %event-player% lobby"
- # wait 1 second
- #command "/title @p title {text:""Go to 0,0! Only stop for a fight!"",color:""dark_aqua"",bold:true}"
- #muting
- on join:
- set player's gamemode to survival
- command /aps [<text>] [<number>]:
- permission: skript.fleftscatter
- trigger:
- if arg-2 is not set:
- set {_pitch} to 1
- if arg-2 is set:
- set {_pitch} to arg-2
- loop all players:
- execute console command "/playsound %arg-1% %loop-player% ~ ~ ~ 1 %{_pitch}% 1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement