Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every 5 minutes:
- if {uhctimer} is set:
- execute console command "broadcast &6The UHC Event is Starting!"
- execute console command "start"
- delete {uhctimer}
- execute console command "whitelist on"
- #break
- command /uhc [<string>]:
- permission: hosteduhc.host
- permission message: &7No Permission! Must have &5Platinum &7or &bFamous&7!
- trigger:
- if arg-1 is set:
- if arg-1 is "startwait":
- execute player command "broadcast &8&lUHC IS STARTING, JOIN WITH /uhcjoin ! ( Hosted by %command sender% )"
- set {uhctimer} to "true"
- execute console command "whitelist off"
- execute console command "hoster %command sender%"
- if arg-1 is "border":
- open chest with 1 row named "&dBORDER CONTROL" to player
- wait 1 tick
- format slot 2 of player with bedrock named "Border 500" to close then run "border 500"
- format slot 4 of player with bedrock named "Border 250" to close then run "border 250"
- format slot 6 of player with bedrock named "Border 125" to close then run "border 125"
- format slot 8 of player with bedrock named "Border 125" to close then run "border 50"
- else:
- open chest with 3 rows named "&d&lSTART UHC" to player
- wait 1 tick
- format slot 4 of player with stick named "&dBorder" with lore "Opens Border GUI" to close then run "bordergui"
- format slot 8 of player with slimeball named "&dStart UHC" with lore "Start the 5 minute timer" to close then run "uhc startwait"
- format slot 22 of player with book named "Admin Config" with lore "Open the UHC Hoster GUI" to close then run "configadminwait"
- format slot 26 of player with book named "Scenarios" with lore "Edit Scenarios" to close then run "scenariosgui"
- #a
- command /bordergui:
- permission: hosteduhc.host
- permission message: &7No Permission! Must have &5Platinum &7or &bFamous&7!
- trigger:
- close player's inventory
- wait 5 ticks
- execute console command "sudo %command sender% uhc border"
- command /configadminwait:
- permission: hosteduhc.host
- permission message: &7No Permission! Must have &5Platinum &7or &bFamous&7!
- trigger:
- close player's inventory
- wait 5 ticks
- execute console command "sudo %command sender% config admin"
- command /scenariosgui:
- permission: hosteduhc.host
- permission message: &7No Permission! Must have &5Platinum &7or &bFamous&7!
- trigger:
- close player's inventory
- wait 5 ticks
- execute console command "sudo %command sender% scenarios config"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement