Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- name: UHC by CommandsPVP#Max 30 caractères
- serverName: CommandsPVP#Max 15 caractères
- TS: commandspvp.com
- twitter: @CommandsPVP
- motd: &r §6&k|||&r §a§lUHC by CommandsPVP §r§6&k|||&r%nl%
- on skript load:
- unload world "lobby"
- load world "lobby"
- command /load:
- trigger:
- if command sender is op:
- reset recipes
- set {UHCStart} to false
- set {WHOpen} to false
- set {chat} to true
- set {nether} to "ON"
- set {TeamsStatus} to false
- set {TeamsNumbers} to 1
- set {TeamsNumbersName} to "FFA"
- set {meetupTime} to 80
- set {pvpTime} to 20
- set {secondsTime} to 00
- set {pvpTab} to "%{pvpTime}%:00"
- set {meetupTab} to "%{meetupTime}%:00"
- set {msg} to true
- set {open} to false
- set {whCounter} to ""
- set {eternalDay} to false
- disable PvP in all worlds
- set the time to 0:00
- teleport command sender to location (0, 100, 0) in world "world"
- set the time to 6:00
- teleport command sender to location (0, 102, 0) in world "lobby"
- set the time to 0:00
- set {TempHealth} to 20
- set {SensHealth} to 2
- set {CutClean} to "OFF"
- set {potions2} to "OFF"
- set {Start} to false
- set {border} to 2000
- set {invinc} to false
- set {weather} to false
- set {spawnsReady} to false
- set {allTeleported} to false
- set {spawnsStart} to false
- delete {programHour}
- set {pve} to 0
- loop {Sc::*}:
- set {Sc::%loop-index%} to false
- set {Sc::goldenretriever::name} to "Golden Retriever"
- set {Sc::barebones::name} to "Barebones"
- set {Sc::rush::name} to "Rush"
- delete {Team::*}
- delete {invite::*}
- delete {Spec::*}
- delete {tplocation::*}
- delete {death::*}
- delete {inviteConfirm::*}
- delete {nodamage::*}
- delete {teleported::*}
- delete {chatname::*}
- delete {invinc::*}
- delete {onGround::*}
- delete {starterfood::*}
- delete {lastmsg::*}
- delete {Rand::*}
- delete {invOpen::*}
- delete {jump-user::*}
- delete {kills::*}
- delete {actionbarused::*}
- delete {death::*}
- delete {mute::*}
- set the spawn point of "lobby" to location (0, 102.5, 0) in the world "lobby"
- teleport all players to location (0.5, 102.5, 0.5) in the world "lobby"
- if command sender is not in world "world":
- set {_loc} to location of command sender
- teleport command sender to location (0, 100, 0) in world "world"
- make player execute command "/worldborder center 0.0 0.0"
- make player execute command "/worldborder damage buffer 20.0"
- make player execute command "/worldborder damage amount 0.1"
- make player execute command "/worldborder warning distance 20"
- make player execute command "/worldborder warning time 20"
- make player execute command "/worldborder set %{border}%"
- make player execute command "/difficulty 0"
- if {_loc} is set:
- teleport command sender to {_loc}
- set {UHC1} to 0
- set {UHC2} to 0
- set {UHC3} to 0
- set {UHC4} to 0
- set {UHC5} to 0
- set {UHC6} to 0
- set {UHC7} to 0
- set {UHC8} to 0
- set {UHC9} to 0
- set {UHC10} to 0
- set {UHC11} to 0
- set {UHC12} to 0
- set {UHC13} to 0
- set {UHC14} to 0
- set {UHC15} to 0
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- set {chatname::%loop-index%} to "&7%{_name}%"
- execute command "/ne clear %{_name}%"
- loop all players:
- set slot 8 of loop-player to air
- set the loop-player's gamemode to adventure
- clear the inventory of player
- close inventory of loop-player
- set {chatname::%loop-player%} to "&7%name of loop-player%"
- execute command "/ne clear %loop-player%"
- set the saturation of loop-player to 20
- set the food level of loop-player to 20
- loop all players:
- reveal loop-player-2 to loop-player-1
- execute command "/updatescoreboard"
- register new shaped recipe for golden apple item named "&6Golden Head" using Gold ingot, Gold ingot, Gold ingot, Gold ingot, player head, Gold ingot, Gold ingot, Gold ingot, Gold ingot
- register new shaped recipe for glistering melon named "&6Glistering Melon" using Gold ingot, Gold ingot, Gold ingot, Gold ingot, melon slice, Gold ingot, Gold ingot, Gold ingot, Gold ingot
- loop all players:
- set tab score of player to 100 for loop-player
- set tab score of loop-player to 100 for player
- wait 1 second
- else:
- send "Unknown command." to command sender
- on join:
- set tab header to "\n&7 Welcome on the UHC, &a%player% &7! \n &b@CommandsPVP &7⋯ &aTS: &b{@TS} \n" and footer to "\n &7UHC &a%{TeamsNumbersName}% &7⋯ Nether &a%{nether}% &7⋯ CutClean &a%{CutClean}% \n\n &7PVP: &a%{pvpTab}% &7⋯ Meetup: &a%{meetupTab}% &7⋯ Map: &a%{border}%x%{border}% \n\n &7Players: &a%{players}% &7⋯ Ping: &a%ping of player%ms &7⋯ TPS: &a%tps% \n" for player
- if {UHCStart} is not true:
- send player title "&a{@name}" with subtitle "&7UHC &a%{TeamsNumbersName}% &7⋯ Nether &a%{nether}% &7⋯ CutClean &a%{CutClean}%" for 4 seconds with 0 second fade in and 0.5 second fade out
- set slot 4 of player to shiny paper named "&b&lThe Rules &r&7(Right-Click)" with lore "&fClick to see the rules."
- if {TeamsStatus} is true:
- set slot 8 of player to 1 of shiny name tag named "&6&lThe Teams &r&7(Right-Click)" with lore "&fClick to see the teams."
- else:
- set slot 8 of player to air
- set the player's gamemode to adventure
- set the saturation of player to 20
- set the food level of player to 20
- teleport player to location (0.5, 102.5, 0.5) in the world "lobby"
- if {Team::%player%} is equal to "UHC1":
- set {chatname::%player%} to "&0%name of player%"
- execute command "/ne prefix %player% &0"
- else if {Team::%player%} is equal to "UHC2":
- set {chatname::%player%} to "&1%name of player%"
- execute command "/ne prefix %player% &1"
- else if {Team::%player%} is equal to "UHC3":
- set {chatname::%player%} to "&2%name of player%"
- execute command "/ne prefix %player% &2"
- else if {Team::%player%} is equal to "UHC4":
- set {chatname::%player%} to "&3%name of player%"
- execute command "/ne prefix %player% &3"
- else if {Team::%player%} is equal to "UHC5":
- set {chatname::%player%} to "&4%name of player%"
- execute command "/ne prefix %player% &4"
- else if {Team::%player%} is equal to "UHC6":
- set {chatname::%player%} to "&5%name of player%"
- execute command "/ne prefix %player% &5"
- else if {Team::%player%} is equal to "UHC7":
- set {chatname::%player%} to "&6%name of player%"
- execute command "/ne prefix %player% &6"
- else if {Team::%player%} is equal to "UHC8":
- set {chatname::%player%} to "&7%name of player%"
- execute command "/ne prefix %player% &7"
- else if {Team::%player%} is equal to "UHC9":
- set {chatname::%player%} to "&8%name of player%"
- execute command "/ne prefix %player% &8"
- else if {Team::%player%} is equal to "UHC10":
- set {chatname::%player%} to "&9%name of player%"
- execute command "/ne prefix %player% &9"
- else if {Team::%player%} is equal to "UHC11":
- set {chatname::%player%} to "&a%name of player%"
- execute command "/ne prefix %player% &a"
- else if {Team::%player%} is equal to "UHC12":
- set {chatname::%player%} to "&b%name of player%"
- execute command "/ne prefix %player% &b"
- else if {Team::%player%} is equal to "UHC13":
- set {chatname::%player%} to "&c%name of player%"
- execute command "/ne prefix %player% &c"
- else if {Team::%player%} is equal to "UHC14":
- set {chatname::%player%} to "&d%name of player%"
- execute command "/ne prefix %player% &d"
- else if {Team::%player%} is equal to "UHC15":
- set {chatname::%player%} to "&e%name of player%"
- execute command "/ne prefix %player% &e"
- else:
- set {chatname::%player%} to "&7%name of player%"
- execute command "/ne clear %player%"
- if {UHCStart} is true:
- if {Spec::%player%} is not set:
- if {teleported::%player%} is not set:
- teleport player to {tplocation::%player%}
- set {teleported::%player%} to true
- delete {inviteConfirm::%player%}
- set rf max health of player to 20
- set health of player to 10
- clear the inventory of player
- set the level of player to 0
- set the level progress of player to 0
- if {Start} is true:
- delete {leave::%player%}
- if {Spec::%player%} is set:
- set the gamemode of player to spectator
- else:
- if {onGround::%player%} is not set:
- set the gamemode of player to survival
- set the saturation of player to 20
- set {nodamage::%player%} to true
- set {invinc::%player%} to true
- if {invinc} is not true:
- set {_timer} to 0
- while {_timer} is smaller than 30:
- set {_timeleft} to (30 - {_timer})
- if {actionbarused::%player%} is not set:
- set action bar of player to "&cDamage active in &a%{_timeleft}% &cseconds"
- add 1 to {_timer}
- wait 1 second
- set {onGround::%player%} to true
- if {actionbarused::%player%} is not set:
- set action bar of player to ""
- delete {nodamage::%player%}
- delete {invinc::%player%}
- if {chatname::%player%} is set:
- if player is op:
- set join message to "&7[&a+&7] &4Admin&8 | &7%{chatname::%player%}% &r&7joined."
- else if {Host::%player%} is set:
- set join message to "&7[&a+&7] &cHost&8 | &7%{chatname::%player%}% &r&7joined."
- else if {Staff::%player%} is set:
- set join message to "&7[&a+&7] &cStaff&8 | &7%{chatname::%player%}% &r&7joined."
- else:
- set join message to "&7[&a+&7] %{chatname::%player%}% &r&7joined."
- else:
- if player is op:
- set join message to "&7[&a+&7] &4Admin&8 | &7%player% &r&7joined."
- else if {Host::%player%} is set:
- set join message to "&7[&a+&7] &cHost&8 | &7%player% &r&7joined."
- else if {Staff::%player%} is set:
- set join message to "&7[&a+&7] &cStaff&8 | &7%player% &r&7joined."
- else:
- set join message to "&7[&a+&7] %player% &r&7joined."
- loop all players:
- set tab score of player to 100 for loop-player
- set tab score of loop-player to 100 for player
- execute command "/updatescoreboard"
- if {UHCStart} is not true:
- wait 2 ticks
- 1.8 spawn 10 of particle explode:0.1 offset by 0, 0, 0 at player with data 0
- on quit:
- if {chatname::%player%} is set:
- if player is op:
- set quit message to "&7[&c-&7] &4Admin&8 | &7%{chatname::%player%}% &r&7left."
- else if {Host::%player%} is set:
- set quit message to "&7[&c-&7] &cHost&8 | &7%{chatname::%player%}% &r&7left."
- else if {Staff::%player%} is set:
- set quit message to "&7[&c-&7] &cStaff&8 | &7%{chatname::%player%}% &r&7left."
- else:
- set quit message to "&7[&c-&7] %{chatname::%player%}% &7left."
- else:
- if player is op:
- set quit message to "&7[&c-&7] &4Admin&8 | &7%player% &r&7left."
- else if {Host::%player%} is set:
- set quit message to "&7[&c-&7] &cHost&8 | &7%player% &r&7left."
- else if {Staff::%player%} is set:
- set quit message to "&7[&c-&7] &cStaff&8 | &7%player% &r&7left."
- else:
- set quit message to "&7[&c-&7] %player% &7left."
- close inventory of player
- delete {inviteConfirm::%player%}
- if {WH::%player%} is set:
- set {leave::%player%} to 0
- on hunger meter change:
- if player is in world "lobby":
- set the food level of the player to 20
- else if {Start} is not true:
- set the food level of the player to 20
- on damage of player:
- if victim is in world "lobby":
- if damage cause is fall:
- cancel event
- else if {Start} is not true:
- if damage cause is fall:
- cancel event
- if {nodamage} is true:
- cancel event
- else if {nodamage::%victim%} is true:
- cancel event
- close inventory of victim
- if projectile is set:
- if projectile is an arrow:
- set {actionbarused::%victim%} to true
- set {_dist} to the distance between the victim and the attacker
- set action bar of attacker to "&a%victim% §7est à &a%(health of victim * 2)%§7%% (%{_dist}% blocs)"
- wait 2 seconds
- delete {actionbarused::%victim%}
- on damage:
- if victim is in world "lobby":
- cancel event
- else if {Start} is not true:
- if attacker is a player:
- cancel event
- on click holding name tag:
- if {invOpen::%player%} is not set:
- if player is in world "lobby":
- if name of tool of player is "&6&lThe Teams &r&7(Right-Click)":
- cancel event
- set {invOpen::%player%} to true
- play "ORB_PICKUP" to player at volume 0.5
- make player execute command "/team list"
- on click holding paper:
- if {invOpen::%player%} is not set:
- if player is in world "lobby":
- if name of tool of player is "&b&lThe Rules &r&7(Right-Click)":
- cancel event
- set {invOpen::%player%} to true
- play "ORB_PICKUP" to player at volume 0.5
- make player execute command "/rules"
- on inventory click:
- if player is in world "lobby":
- if clicked item is a name tag:
- if the name of clicked item is "&6&lThe Teams &r&7(Right-Click)":
- cancel event
- play "CLICK" to player at volume 0.5
- make player execute command "/team list"
- else if clicked item is a paper:
- if the name of clicked item is "&b&lThe Rules &r&7(Right-Click)":
- cancel event
- play "CLICK" to player at volume 0.5
- make player execute command "/rules"
- on player drop:
- if player is in world "lobby":
- if item is a name tag:
- if the name of item is "&6&lThe Teams &r&7(Right-Click)":
- cancel event
- if item is a paper:
- if the name of item is "&b&lThe Rules &r&7(Right-Click)":
- cancel event
- at 7:00 in world "world":
- if {Start} is not true:
- set the time to 6:00
- at 1:00 in world "lobby":
- set the time to 0:00
- at 13:00 in world "world":
- if {eternalDay} is true:
- set time to 12:00
- on weather change:
- if event-world is "world":
- if {Start} is not true:
- set weather to sunny
- else if {weather} is true:
- set weather to sunny
- else if event-world is "lobby":
- set weather to sunny
- every 10 seconds:
- if {UHCStart} is true:
- if {nether} is equal to "OFF":
- loop all players:
- if loop-player is in world "world_nether":
- loop all players:
- if loop-player-2 is op:
- send "&4&l%loop-player-1% &r&cis in the nether !" to loop-player-2
- every seconds in "world":
- if {UHCStart} is not true:
- set the level of all players to {players}
- set the level progress of all players to 0.99
- if {programHour} is set:
- if the length of {programHour} is 5:
- if {open} is false:
- if {TeamsNumbersName} is equal to "FFA":
- set {motd} to "{@motd}&d&l⫸ &r§eFFA §6- §cWH Off at §a&l%{programHour}% &r&6- &eFollow &b{@twitter} &d&l⫷"
- else:
- set {motd} to "{@motd}&d&l⫸ &r§e%{TeamsNumbersName}% §6- §cWH Off at §a%{programHour}% &6- &b{@twitter}&d&l⫷"
- else if {open} is true:
- if {whCounter} is set:
- loop all players:
- if {spawnsStart} is not true:
- if {actionbarused::%loop-player%} is not set:
- set action bar of loop-player to "&cThe UHC start in &a%{untilStart}%:%{secondsTime}%"
- set {secondsTime} to ("%{secondsTime}%" parsed as integer)
- remove 1 from {secondsTime}
- if {secondsTime} is equal to -1:
- set {secondsTime} to 59
- remove 1 from {untilStart}
- if {untilStart} is equal to 0:
- if {secondsTime} is smaller than 0:
- set {whCounter} to "00:00"
- set {secondsTime} to ("%{secondsTime}%" parsed as string)
- if the length of {secondsTime} is smaller than 2:
- set {secondsTime} to "0%{secondsTime}%"
- if {whCounter} is not equal to "00:00":
- set {whCounter} to "%{untilStart}%:%{secondsTime}%"
- if {TeamsNumbersName} is equal to "FFA":
- set {motd} to "{@motd}&d&l⫸ §e§lFFA §6- &cStart in &a§l%{whCounter}% &r&aminutes &6- &b{@twitter} &d&l⫷"
- else:
- set {motd} to "{@motd}&d&l⫸ &r§e%{TeamsNumbersName}% §6- §cStart in §a%{whCounter}% &r&aminutes &6- &bHurry up !&d&l⫷"
- else:
- set {motd} to "{@motd}&d&l⫸ §eNo scheduled UHC §6- &aFollow §b§l{@twitter} &d&l⫷"
- else:
- set {motd} to "{@motd}&d&l⫸ §eNo scheduled UHC §6- &aFollow &b&l{@twitter} &d&l⫷"
- set {players} to 0
- loop all players:
- if {Spec::%loop-player%} is not set:
- add 1 to {players}
- if {UHCStart} is true:
- set {motd} to "{@motd}&d&l⫸ &e%{players}% players &6- &cMeetup in &a&l%{meetupTab}% &r&6- &b{@twitter} &d&l⫷"
- if {Start} is not true:
- set {players} to 0
- loop {WH::*}:
- set {_loopPlayers} to ("%loop-index%" parsed as offlineplayer)
- if {Spec::%{_loopPlayers}%} is not set:
- add 1 to {players}
- else:
- set {players} to 0
- loop {WH::*}:
- set {_loopPlayers} to ("%loop-index%" parsed as offlineplayer)
- if {_loopPlayers} is not in world "lobby":
- if {Spec::%{_loopPlayers}%} is not set:
- add 1 to {players}
- if {Start} is true:
- if PvP is enabled in world "world":
- loop {WH::*}:
- set {_playerWH} to ("%loop-index%" parsed as offlineplayer)
- if {leave::%{_playerWH}%} is set:
- if {_playerWH} is online:
- delete {leave::%{_playerWH}%}
- else:
- if {leave::%{_playerWH}%} is greater than 1199:
- if {Spec::%{_playerWH}%} is not set:
- delete {WH::%{_playerWH}%}
- broadcast "&a&lUHC &r&8⫸ &6%{_playerWH}% &7is offline for more than 20 minutes, he is removed from the UHC."
- if {Team::%{_playerWH}%} is set:
- set {chatname::%{_playerWH}%} to "&7%{_playerWH}%"
- execute command "/ne clear %{_playerWH}%"
- set {_NotEmpty} to false
- loop {WH::*}:
- set {_name} to ("%loop-index-2%" parsed as offlineplayer)
- if {_name} is not command sender:
- if {Team::%{_name}%} is equal to {Team::%{_playerWH}%}:
- set {_NotEmpty} to true
- stop loop
- if {_NotEmpty} is false:
- if {Team::%{_playerWH}%} is equal to "UHC1":
- set {UHC1} to 0
- else if {Team::%{_playerWH}%} is equal to "UHC2":
- set {UHC2} to 0
- else if {Team::%{_playerWH}%} is equal to "UHC3":
- set {UHC3} to 0
- else if {Team::%{_playerWH}%} is equal to "UHC4":
- set {UHC4} to 0
- else if {Team::%{_playerWH}%} is equal to "UHC5":
- set {UHC5} to 0
- else if {Team::%{_playerWH}%} is equal to "UHC6":
- set {UHC6} to 0
- else if {Team::%{_playerWH}%} is equal to "UHC7":
- set {UHC7} to 0
- else if {Team::%{_playerWH}%} is equal to "UHC8":
- set {UHC8} to 0
- else if {Team::%{_playerWH}%} is equal to "UHC9":
- set {UHC9} to 0
- else if {Team::%{_playerWH}%} is equal to "UHC10":
- set {UHC10} to 0
- else if {Team::%{_playerWH}%} is equal to "UHC11":
- set {UHC11} to 0
- else if {Team::%{_playerWH}%} is equal to "UHC12":
- set {UHC12} to 0
- else if {Team::%{_playerWH}%} is equal to "UHC13":
- set {UHC13} to 0
- else if {Team::%{_playerWH}%} is equal to "UHC14":
- set {UHC14} to 0
- else if {Team::%{_playerWH}%} is equal to "UHC15":
- set {UHC15} to 0
- delete {Team::%{_playerWH}%}
- else:
- add 1 to {leave::%{_playerWH}%}
- set {secondsTime} to ("%{secondsTime}%" parsed as integer)
- remove 1 from {secondsTime}
- if {secondsTime} is equal to -1:
- set {secondsTime} to 59
- remove 1 from {pvpTime}
- remove 1 from {meetupTime}
- if {pvpTime} is equal to 0:
- if {secondsTime} is equal to 0:
- enable PvP in all worlds
- disable PvP in world "lobby"
- execute command "/updatescoreboard"
- loop {WH::*}:
- set {_whName} to ("%loop-index%" parsed as offlineplayer)
- if {onGround::%{_whName}%} is not set:
- if {Spec::%{_whName}%} is not set:
- delete {WH::%{_whName}%}
- if {Team::%{_whName}%} is set:
- set {chatname::%{_whName}%} to "&7%{_whName}%"
- execute command "/ne clear %{_whName}%"
- set {_NotEmpty} to false
- loop {WH::*}:
- set {_name} to ("%loop-index-2%" parsed as offlineplayer)
- if {_name} is not command sender:
- if {Team::%{_name}%} is equal to {Team::%{_whName}%}:
- set {_NotEmpty} to true
- stop loop
- if {_NotEmpty} is false:
- if {Team::%{_whName}%} is equal to "UHC1":
- set {UHC1} to 0
- else if {Team::%{_whName}%} is equal to "UHC2":
- set {UHC2} to 0
- else if {Team::%{_whName}%} is equal to "UHC3":
- set {UHC3} to 0
- else if {Team::%{_whName}%} is equal to "UHC4":
- set {UHC4} to 0
- else if {Team::%{_whName}%} is equal to "UHC5":
- set {UHC5} to 0
- else if {Team::%{_whName}%} is equal to "UHC6":
- set {UHC6} to 0
- else if {Team::%{_whName}%} is equal to "UHC7":
- set {UHC7} to 0
- else if {Team::%{_whName}%} is equal to "UHC8":
- set {UHC8} to 0
- else if {Team::%{_whName}%} is equal to "UHC9":
- set {UHC9} to 0
- else if {Team::%{_whName}%} is equal to "UHC10":
- set {UHC10} to 0
- else if {Team::%{_whName}%} is equal to "UHC11":
- set {UHC11} to 0
- else if {Team::%{_whName}%} is equal to "UHC12":
- set {UHC12} to 0
- else if {Team::%{_whName}%} is equal to "UHC13":
- set {UHC13} to 0
- else if {Team::%{_whName}%} is equal to "UHC14":
- set {UHC14} to 0
- else if {Team::%{_whName}%} is equal to "UHC15":
- set {UHC15} to 0
- delete {Team::%{_whName}%}
- loop all players:
- if loop-player is not in world "lobby":
- if {Spec::%loop-player%} is not set:
- if {actionbarused::%loop-player%} is not set:
- set action bar of loop-player to ""
- send loop-player title "&4PVP Enabled" with subtitle "&7Get ready to fight!" for 2 seconds with 0.5 second fade in and 0.5 second fade out
- broadcast "&a&lUHC &r&8⫸ &7The PVP is now activated."
- set {pvpTab} to "ON"
- if {meetupTime} is equal to 0:
- if {secondsTime} is equal to 0:
- loop {Host::*}:
- set {_host} to ("%loop-index%" parsed as offlineplayer)
- stop loop
- if {_host} is not in world "world":
- set {_loc} to location of {_host}
- teleport {_host} to location (0, 100, 0) in world "world"
- make {_host} execute command "/worldborder set 200 %(({border}-200)/2)%"
- if {_loc} is set:
- teleport {_host} to {_loc}
- remove 2 from {border}
- loop all players:
- if loop-player is not in world "lobby":
- if {Spec::%loop-player%} is not set:
- if {actionbarused::%loop-player%} is not set:
- set action bar of loop-player to ""
- send loop-player title "&6Meetup" with subtitle "&7Move closer to the center!" for 2 seconds with 0.5 second fade in and 0.5 second fade out
- broadcast "&a&lUHC &r&8⫸ &7Head to the center."
- broadcast "&a&lUHC &r&8⫸ &7The border shrinks."
- set {meetupTab} to "00:00"
- set {secondsTime} to ("%{secondsTime}%" parsed as string)
- if the length of {secondsTime} is smaller than 2:
- set {secondsTime} to "0%{secondsTime}%"
- if {pvpTab} is equal to "ON":
- set {pvpTab} to "ON"
- else:
- set {pvpTab} to "%{pvpTime}%:%{secondsTime}%"
- if {meetupTab} is equal to "00:00":
- if {border} is greater than 202:
- remove 2 from {border}
- loop all players:
- if {Spec::%loop-player%} is not set:
- if loop-player is in world "world":
- if ({border}/2) - (x coord of location of loop-player) is smaller than 30:
- if ({border}/2) - (z coord of location of loop-player) is greater than 30:
- if ({border}/2) - (x coord of location of loop-player) is smaller than 0:
- set {actionbarMeetup} to "&cThe border is at &a0 blocks &cof you"
- else:
- set {actionbarMeetup} to "&cThe border is at &a%round(({border}/2) - (x coord of location of loop-player))% blocks &cof you"
- else:
- if ({border}/2) - (z coord of location of loop-player) is smaller than ({border}/2) - (x coord of location of loop-player):
- if ({border}/2) - (z coord of location of loop-player) is smaller than 0:
- set {actionbarMeetup} to "&cThe border is at &a0 blocks &cof you"
- else:
- set {actionbarMeetup} to "&cThe border is at &a%round(({border}/2) - (z coord of location of loop-player))% blocks &cof you"
- else:
- if ({border}/2) - (x coord of location of loop-player) is smaller than 0:
- set {actionbarMeetup} to "&cThe border is at &a0 blocks &cof you"
- else:
- set {actionbarMeetup} to "&cThe border is at &a%round(({border}/2) - (x coord of location of loop-player))% blocks &cof you"
- else if ({border}/2) - (z coord of location of loop-player) is smaller than 30:
- if ({border}/2) - (x coord of location of loop-player) is greater than 30:
- if ({border}/2) - (x coord of location of loop-player) is smaller than 0:
- set {actionbarMeetup} to "&cThe border is at &a0 blocks &cof you"
- else:
- set {actionbarMeetup} to "&cThe border is at &a%round(({border}/2) - (x coord of location of loop-player))% blocks &cof you"
- else:
- set {actionbarMeetup} to ""
- if {actionbarused::%loop-player%} is not set:
- set action bar of loop-player to "%{actionbarMeetup}%"
- delete {actionbarMeetup}
- else if {border} is equal to 202:
- remove 2 from {border}
- broadcast "&a&lUHC &r&8⫸ &7Shrinking completed."
- else:
- set {meetupTab} to "%{meetupTime}%:%{secondsTime}%"
- if {pvpTab} is not equal to "ON":
- if {invinc} is not true:
- loop all players:
- if loop-player is not in world "lobby":
- if {invinc::%loop-player%} is not set:
- if {Spec::%loop-player%} is not set:
- if {actionbarused::%loop-player%} is not set:
- set action bar of loop-player to "&cPVP enabled in &a%{pvpTab}%"
- else if {pvpTab} is equal to "ON":
- if {meetupTab} is not equal to "00:00":
- loop all players:
- if loop-player is not in world "lobby":
- if {Spec::%loop-player%} is not set:
- if {actionbarused::%loop-player%} is not set:
- set action bar of loop-player to "&cMeetup in &a%{meetuptab}%"
- loop all players:
- set tab header to "\n&7 Welcome on the UHC, &a%loop-player% &7! \n &b@CommandsPVP &7 ⋯ &aTS: &b{@TS} \n" and footer to "\n &7UHC &a%{TeamsNumbersName}% &7 ⋯ Nether &a%{nether}% &7 ⋯ CutClean &a%{CutClean}% \n\n &7PVP: &a%{pvpTab}% &7⋯ Meetup: &a%{meetupTab}% &7⋯ Map: &a%{border}%x%{border}% \n\n &7Players: &a%{players}% &7⋯ Ping: &a%ping of loop-player%ms &7⋯ TPS: &a%tps% \n" for loop-player
- loop {death::*}:
- set {_deathPlayer} to ("%loop-index%" parsed as offlineplayer)
- hide {_deathPlayer} to loop-player-1
- every 0.5 seconds:
- loop all players in world "lobby":
- if loop-player is in world "lobby":
- set rf max health of loop-player to {TempHealth}
- set health of loop-player to 10
- if {TempHealth} is equal to 2:
- set {SensHealth} to 1
- else if {TempHealth} is equal to 20:
- set {SensHealth} to 2
- if {SensHealth} is equal to 1:
- set {TempHealth} to ({TempHealth} + 2)
- else if {SensHealth} is equal to 2:
- set {TempHealth} to ({TempHealth} - 2)
- if {Start} is true:
- loop all players:
- loop all players:
- if {Spec::%loop-player-1%} is not set:
- set {_pHealth} to floor(health of loop-player-1 * 10)
- set tab score of loop-player-1 to {_pHealth} for loop-player-2
- on command:
- if player is not an op:
- if command is equal to "?", "aliases", "nametagedit", "nte", "pl", "rayfall", "rl", "sk", "skrf", "ver", "bukkit:?", "bukkit:about", "bukkit:help", "bukkit:pl", "bukkit:plugins", "bukkit:reload", "bukkit:rl", "bukkit:timings", "bukkit:ver", "bukkit:version", "plugins", "reload", "timings", "version", "minecraft:help", "ne", "nte", "nametagedit", "nametagedit:nametagedit", "nametagedit:ne", "nametagedit:nte", "skrayfall", "sk", "skRayFall", "skfr", "skript", "skrayfall:rayfall", "skrayfall:skrayfall", "skrayfall:skrf", "skript:sk", "skript:skript", "me", "minecraft:me" or "wb":
- cancel event
- send "Unknown command." to command sender
- on command:
- if command is equal to "help" or "h":
- cancel event
- set {_access} to false
- if {Host::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- send "&a&lUHC &r&8⫸ &7UHC Management:" to command sender
- send "&8⫸ &f/config &7- &oConfigure the UHC." to command sender
- send "&8⫸ &f/scenarios &7- &oSelect the scénarios." to command sender
- send "&8⫸ &f/wh &7- &oWhitelist Management." to command sender
- send "&8⫸ &f/spec &7- &oSpectators Management." to command sender
- send "&8⫸ &f/program &7- &oSchedule the next UHC." to command sender
- send "&a&lUHC &r&8⫸ &7Launch a UHC:" to command sender
- send "&8⫸ &f/open &7- &oOpen the whitelist." to command sender
- send "&8⫸ &f/spawns &7- &oGenerate the spawns." to command sender
- send "&8⫸ &f/teleport &7- &oTeleport players and close whitelist." to command sender
- send "&8⫸ &f/start &7- &oStart the UHC." to command sender
- send "&a&lUHC &r&8⫸ &7Moderations commands:" to command sender
- send "&8⫸ &f/inv <player> &7- &oView the inventory of a player." to command sender
- send "&8⫸ &f/mute <player> &7- &oMute a player." to command sender
- send "&a&lUHC &r&8⫸ &7Useful commands:" to command sender
- send "&8⫸ &f/rules &7- &oCheck the rules." to command sender
- send "&8⫸ &f/msg &7- &oSend a private message." to command sender
- send "&8⫸ &f/r &7- &oReply to last private message." to command sender
- send "&8⫸ &f/team &7- &oManage teams." to command sender
- send "&8⫸ &f/about <player> &7- &oSee status of a player." to command sender
- else if {Staff::%player%} is set:
- send "&a&lUHC &r&8⫸ &7UHC Management:" to command sender
- send "&8⫸ &f/wh &7- &oWhitelist Management." to command sender
- send "&8⫸ &f/spec &7- &oSpectators Management." to command sender
- send "&a&lUHC &r&8⫸ &7Useful commands:" to command sender
- send "&8⫸ &f/rules &7- &oCheck the rules." to command sender
- send "&8⫸ &f/msg &7- &oSend a private message." to command sender
- send "&8⫸ &f/r &7- &oReply to last private message." to command sender
- send "&8⫸ &f/team &7- &oManage teams." to command sender
- send "&8⫸ &f/about <player> &7- &oSee status of a player." to command sender
- else:
- send "&a&lUHC &r&8⫸ &7Useful commands:" to command sender
- send "&8⫸ &f/rules &7- &oCheck the rules." to command sender
- send "&8⫸ &f/msg &7- &oSend a private message." to command sender
- send "&8⫸ &f/r &7- &oReply to last private message." to command sender
- send "&8⫸ &f/team &7- &oManage teams." to command sender
- send "&8⫸ &f/about <player> &7- &oSee status of a player." to command sender
- command /rules:
- trigger:
- open chest with 3 row named "&8⫸ &4{@name}" to player
- wait 1 tick
- format slot 0 of player with shiny book named "&bUHC TheTonyk 1" with lore "&7UHC FFA||&8CutClean||&7Rush||&8Barebones||&7Check tab informations||&c/helpop &8for help" to be unstealable
- command /config [<text>] [<text>]:
- trigger:
- set {_access} to false
- if {Host::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if {UHCStart} is not true:
- if arg 2 is not set:
- if arg 1 is not set:
- wait 1 tick
- open chest with 3 row named "&8⫸ &4Configuration" to player
- wait 1 tick
- if {TeamsStatus} is true:
- format slot 0 of player with shiny name tag named "&8⫸ &7Teams: &a%{TeamsNumbersName}%" to run [make player execute command "/config teams"]
- else:
- format slot 0 of player with name tag named "&8⫸ &7Teams: &c%{TeamsNumbersName}%" to run [make player execute command "/config teams"]
- if {WHOpen} is false:
- format slot 1 of player with shiny book and quill named "&8⫸ &7Whitelist: &aON" to run [make player execute command "/config wh"]
- else:
- format slot 1 of player with book and quill named "&8⫸ &7Whitelist: &cOFF" to run [make player execute command "/config wh"]
- if {CutClean} is equal to "ON":
- format slot 2 of player with shiny coal item named "&8⫸ &7CutClean: &aON" to run [set {CutClean} to "OFF"]->[make player execute command "/config"]
- else:
- format slot 2 of player with coal item named "&8⫸ &7CutClean: &cOFF" to run [set {CutClean} to "ON"]->[make player execute command "/config"]
- if {chat} is true:
- format slot 3 of player with shiny paper named "&8⫸ &7Chat: &aON" to run [make player execute command "/config chat"]
- else:
- format slot 3 of player with paper named "&8⫸ &7Chat: &cOFF" to run [make player execute command "/config chat"]
- if {nether} is equal to "ON":
- format slot 4 of player with shiny netherrack named "&8⫸ &7Nether: &aON" to run [set {nether} to "OFF"]->[make player execute command "/config"]
- else:
- format slot 4 of player with netherrack named "&8⫸ &7Nether: &cOFF" to run [set {nether} to "ON"]->[make player execute command "/config"]
- if {potions2} is equal to "ON":
- format slot 5 of player with shiny glowstone dust named "&8⫸ &7Potions II: &aON" to run [set {potions2} to "OFF"]->[make player execute command "/config"]
- else:
- format slot 5 of player with glowstone dust named "&8⫸ &7Potions II: &cOFF" to run [set {potions2} to "ON"]->[make player execute command "/config"]
- if {starterFood::*} is set:
- format slot 6 of player with shiny cooked beef named "&8⫸ &7Starter Food: &6%{starterfood::name}%" to run [make player execute command "/config starterfood"]
- else:
- format slot 6 of player with cooked beef named "&8⫸ &7Starter Food: &cOFF" to run [make player execute command "/config starterfood"]
- if {msg} is true:
- format slot 7 of player with shiny banner:15 named "&8⫸ &7Private messages: &aON" to run [set {msg} to false]->[make player execute command "/config"]
- else:
- format slot 7 of player with banner:15 named "&8⫸ &7Private messages: &cOFF" to run [set {msg} to true]->[make player execute command "/config"]
- if {weather} is true:
- format slot 8 of player with shiny daylight sensor named "&8⫸ &7Eternal Sunny: &aON" to run [set {weather} to false]->[make player execute command "/config"]
- else:
- format slot 8 of player with daylight sensor named "&8⫸ &7Eternal Sunny: &cOFF" to run [set {weather} to true]->[make player execute command "/config"]
- if {eternalDay} is true:
- format slot 9 of player with shiny torch named "&8⫸ &7Eternal Day: &aON" to run [set {eternalDay} to false]->[make player execute command "/config"]
- else:
- format slot 9 of player with torch named "&8⫸ &7Eternal Day: &cOFF" to run [set {eternalDay} to true]->[make player execute command "/config"]
- format slot 18 of player with map named "&8⫸ &7Map: &6%{border}%x%{border}%" to run [make player execute command "/config border"]
- format slot 19 of player with clock named "&8⫸ &7PVP/Meetup Time" with lore "&8⫸ &7PVP: &6%{pvpTab}%||&8⫸ &7Meetup: &6%{meetupTab}%" to run [make player execute command "/config times"]
- format slot 26 of player with barrier named "&8⫸ &cClose" to close
- else if arg 1 is equal to "teams":
- open chest with 5 row named "&8⫸ Configuration: &4Teams" to player
- wait 1 tick
- format slot 0 of player with shiny name tag named "&8⫸ &7Teams: &a%{TeamsNumbersName}%" to be unstealable
- format slot 1 of player with gray stained glass pane named "&7{@name}" to be unstealable
- if {TeamsNumbers} is 1:
- format slot 2 of player with light green clay named "&8⫸ &aFFA" to be unstealable
- else:
- format slot 2 of player with red clay named "&8⫸ &cFFA" to run [make player execute command "/config teams 1"]
- if {TeamsNumbers} is 2:
- format slot 3 of player with 2 of light green clay named "&8⫸ &aChosen To2" to be unstealable
- else:
- format slot 3 of player with 2 of red clay named "&8⫸ &cChosen To2" to run [make player execute command "/config teams 2"]
- if {TeamsNumbers} is 3:
- format slot 4 of player with 3 of light green clay named "&8⫸ &aChosen To3" to be unstealable
- else:
- format slot 4 of player with 3 of red clay named "&8⫸ &cChosen To3" to run [make player execute command "/config teams 3"]
- if {TeamsNumbers} is 4:
- format slot 5 of player with 4 of light green clay named "&8⫸ &aChosen To4" to be unstealable
- else:
- format slot 5 of player with 4 of red clay named "&8⫸ &cChosen To4" to run [make player execute command "/config teams 4"]
- if {TeamsNumbers} is 5:
- format slot 6 of player with 5 of light green clay named "&8⫸ &aChosen To5" to be unstealable
- else:
- format slot 6 of player with 5 of red clay named "&8⫸ &cChosen To5" to run [make player execute command "/config teams 5"]
- format slot 7 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 8 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 9 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 10 of player with gray stained glass pane named "&7{@name}" to be unstealable
- if {TeamsNumbers} is 6:
- format slot 11 of player with 6 of light green clay named "&8⫸ &aChosen To6" to be unstealable
- else:
- format slot 11 of player with 6 of red clay named "&8⫸ &cChosen To6" to run [make player execute command "/config teams 6"]
- if {TeamsNumbers} is 7:
- format slot 12 of player with 7 of light green clay named "&8⫸ &aChosen To7" to be unstealable
- else:
- format slot 12 of player with 7 of red clay named "&8⫸ &cChosen To7" to run [make player execute command "/config teams 7"]
- if {TeamsNumbers} is 8:
- format slot 13 of player with 8 of light green clay named "&8⫸ &aChosen To8" to be unstealable
- else:
- format slot 13 of player with 8 of red clay named "&8⫸ &cChosen To8" to run [make player execute command "/config teams 8"]
- if {TeamsNumbers} is 9:
- format slot 14 of player with 9 of light green clay named "&8⫸ &aChosen To9" to be unstealable
- else:
- format slot 14 of player with 9 of red clay named "&8⫸ &cChosen To9" to run [make player execute command "/config teams 9"]
- if {TeamsNumbers} is 10:
- format slot 15 of player with 10 of light green clay named "&8⫸ &aChosen To10" to be unstealable
- else:
- format slot 15 of player with 10 of red clay named "&8⫸ &cChosen To10" to run [make player execute command "/config teams 10"]
- format slot 16 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 17 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 18 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 19 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 20 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 21 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 22 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 23 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 24 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 25 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 26 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 27 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 28 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 29 of player with gray stained glass pane named "&7{@name}" to be unstealable
- if {TeamsNumbers} is 102:
- format slot 30 of player with 2 of light green clay named "&8⫸ &aRandom To2" to be unstealable
- else:
- format slot 30 of player with 2 of red clay named "&8⫸ &cRandom To2" to run [make player execute command "/config teams 102"]
- if {TeamsNumbers} is 103:
- format slot 31 of player with 3 of light green clay named "&8⫸ &aRandom To3" to be unstealable
- else:
- format slot 31 of player with 3 of red clay named "&8⫸ &cRandom To3" to run [make player execute command "/config teams 103"]
- if {TeamsNumbers} is 104:
- format slot 32 of player with 4 of light green clay named "&8⫸ &aRandom To4" to be unstealable
- else:
- format slot 32 of player with 4 of red clay named "&8⫸ &cRandom To4" to run [make player execute command "/config teams 104"]
- if {TeamsNumbers} is 105:
- format slot 33 of player with 5 of light green clay named "&8⫸ &aRandom To5" to be unstealable
- else:
- format slot 33 of player with 5 of red clay named "&8⫸ &cRandom To5" to run [make player execute command "/config teams 105"]
- format slot 34 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 35 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 36 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 37 of player with gray stained glass pane named "&7{@name}" to be unstealable
- if {TeamsNumbers} is 106:
- format slot 38 of player with 6 of light green clay named "&8⫸ &aRandom To6" to be unstealable
- else:
- format slot 38 of player with 6 of red clay named "&8⫸ &cRandom To6" to run [make player execute command "/config teams 106"]
- if {TeamsNumbers} is 107:
- format slot 39 of player with 7 of light green clay named "&8⫸ &aRandom To7" to be unstealable
- else:
- format slot 39 of player with 7 of red clay named "&8⫸ &cRandom To7" to run [make player execute command "/config teams 107"]
- if {TeamsNumbers} is 108:
- format slot 40 of player with 8 of light green clay named "&8⫸ &aRandom To8" to be unstealable
- else:
- format slot 40 of player with 8 of red clay named "&8⫸ &cRandom To8" to run [make player execute command "/config teams 108"]
- if {TeamsNumbers} is 109:
- format slot 41 of player with 9 of light green clay named "&8⫸ &aRandom To9" to be unstealable
- else:
- format slot 41 of player with 9 of red clay named "&8⫸ &cRandom To9" to run [make player execute command "/config teams 109"]
- if {TeamsNumbers} is 110:
- format slot 42 of player with 10 of light green clay named "&8⫸ &aRandom To10" to be unstealable
- else:
- format slot 42 of player with 10 of red clay named "&8⫸ &cRandom To10" to run [make player execute command "/config teams 110"]
- format slot 43 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 44 of player with barrier named "&8⫸ &cBack" to run [make player execute command "/config"]
- else if arg 1 is equal to "wh":
- if {WHOpen} is false:
- set {WHOpen} to true
- broadcast "&a&lUHC &r&8⫸ &7The whitelist is now open."
- else:
- set {WHOpen} to false
- broadcast "&a&lUHC &r&8⫸ &7The whitelist is now closed."
- make player execute command "/config"
- else if arg 1 is equal to "chat":
- if {chat} is true:
- set {chat} to false
- broadcast "&a&lUHC &r&8⫸ &7Chat enabled."
- else:
- set {chat} to true
- broadcast "&a&lUHC &r&8⫸ &7Chat disabled."
- make player execute command "/config"
- else if arg 1 is equal to "border":
- open chest with 1 row named "&8⫸ Configuration: &4Map" to player
- wait 1 tick
- format slot 0 of player with map named "&8⫸ &7Map: &6%{border}%x%{border}%" to be unstealable
- format slot 1 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 2 of player with green clay named "&8⫸ &2+500 &7(Current: &6%{border}%x%{border}%&7)" to run [make player execute command "/config border +500"]
- format slot 3 of player with light green clay named "&8⫸ &a+100 &7(Current: &6%{border}%x%{border}%&7)" to run [make player execute command "/config border +100"]
- format slot 4 of player with yellow clay named "&8⫸ &eReset &7(Current: &6%{border}%x%{border}%&7)" to run [make player execute command "/config border 2000"]
- format slot 5 of player with pink clay named "&8⫸ &c-100 &7(Current: &6%{border}%x%{border}%&7)" to run [make player execute command "/config border -100"]
- format slot 6 of player with red clay named "&8⫸ &4-500 &7(Current: &6%{border}%x%{border}%&7)" to run [make player execute command "/config border -500"]
- format slot 7 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 8 of player with barrier named "&8⫸ &cBack" to run [make player execute command "/config"]
- else if arg 1 is equal to "times":
- open chest with 2 row named "&8⫸ Configuration: &4PVP/Meetup" to player
- wait 1 tick
- format slot 0 of player with clock named "&8⫸ &7PVP Time: &6%{pvpTab}%" to be unstealable
- format slot 1 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 2 of player with green clay named "&8⫸ &2+10min &7(Current PVP: &6%{pvpTab}%&7)" to run [make player execute command "/config times +10pvp"]
- format slot 3 of player with light green clay named "&8⫸ &a+5min &7(Current PVP: &6%{pvpTab}%&7)" to run [make player execute command "/config times +5pvp"]
- format slot 4 of player with yellow clay named "&8⫸ &eReset &7(Current PVP: &6%{pvpTab}%&7)" to run [make player execute command "/config times default"]
- format slot 5 of player with pink clay named "&8⫸ &c-5min &7(Current PVP: &6%{pvpTab}%&7)" to run [make player execute command "/config times -5pvp"]
- format slot 6 of player with red clay named "&8⫸ &4-10min &7(Current PVP: &6%{pvpTab}%&7)" to run [make player execute command "/config times -10pvp"]
- format slot 7 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 8 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 9 of player with clock named "&8⫸ &7Meetup Time: &6%{meetupTab}%" to be unstealable
- format slot 10 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 11 of player with green clay named "&8⫸ &2+10min &7(Current Meetup: &6%{meetupTab}%&7)" to run [make player execute command "/config times +10meetup"]
- format slot 12 of player with light green clay named "&8⫸ &a+5min &7(Current Meetup: &6%{meetupTab}%&7)" to run [make player execute command "/config times +5meetup"]
- format slot 13 of player with yellow clay named "&8⫸ &eReset &7(Current Meetup: &6%{meetupTab}%&7)" to run [make player execute command "/config times default"]
- format slot 14 of player with pink clay named "&8⫸ &c-5min &7(Current Meetup: &6%{meetupTab}%&7)" to run [make player execute command "/config times -5meetup"]
- format slot 15 of player with red clay named "&8⫸ &4-10min &7(Current Meetup: &6%{meetupTab}%&7)" to run [make player execute command "/config times -10meetup"]
- format slot 16 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 17 of player with barrier named "&8⫸ &cBack" to run [make player execute command "/config"]
- else if arg 1 is equal to "starterfood":
- open chest with 2 row named "&8⫸ Configuration: &4StarterFood" to player
- wait 1 tick
- if {starterfood::name} is set:
- format slot 0 of player with shiny cooked beef named "&8⫸ &7Starter Food: &6%{starterfood::name}%" to be unstealable
- else:
- format slot 0 of player with cooked beef named "&8⫸ &7Starter Food: &cOFF" to be unstealable
- format slot 1 of player with gray stained glass pane named "&7{@name}" to be unstealable
- if {starterfood::command} is equal to "cooked beef":
- if {starterfood::number} is set:
- format slot 2 of player with {starterfood::number} of shiny cooked beef to run [make player execute command "/config starterfood beef"]
- else:
- format slot 2 of player with shiny cooked beef to run [make player execute command "/config starterfood beef"]
- else:
- if {starterfood::number} is set:
- format slot 2 of player with {starterfood::number} of cooked beef to run [make player execute command "/config starterfood beef"]
- else:
- format slot 2 of player with cooked beef to run [make player execute command "/config starterfood beef"]
- if {starterfood::command} is equal to "cooked porkchop":
- if {starterfood::number} is set:
- format slot 3 of player with {starterfood::number} of shiny cooked porkchop to run [make player execute command "/config starterfood porkchop"]
- else:
- format slot 3 of player with shiny cooked porkchop to run [make player execute command "/config starterfood porkchop"]
- else:
- if {starterfood::number} is set:
- format slot 3 of player with {starterfood::number} of cooked porkchop to run [make player execute command "/config starterfood porkchop"]
- else:
- format slot 3 of player with cooked porkchop to run [make player execute command "/config starterfood porkchop"]
- if {starterfood::command} is equal to "cooked chicken":
- if {starterfood::number} is set:
- format slot 4 of player with {starterfood::number} of shiny cooked chicken to run [make player execute command "/config starterfood chicken"]
- else:
- format slot 4 of player with shiny cooked chicken to run [make player execute command "/config starterfood chicken"]
- else:
- if {starterfood::number} is set:
- format slot 4 of player with {starterfood::number} of cooked chicken to run [make player execute command "/config starterfood chicken"]
- else:
- format slot 4 of player with cooked chicken to run [make player execute command "/config starterfood chicken"]
- if {starterfood::command} is equal to "cooked rabbit":
- if {starterfood::number} is set:
- format slot 5 of player with {starterfood::number} of shiny cooked rabbit to run [make player execute command "/config starterfood rabbit"]
- else:
- format slot 5 of player with shiny cooked rabbit to run [make player execute command "/config starterfood rabbit"]
- else:
- if {starterfood::number} is set:
- format slot 5 of player with {starterfood::number} of cooked rabbit to run [make player execute command "/config starterfood rabbit"]
- else:
- format slot 5 of player with cooked rabbit to run [make player execute command "/config starterfood rabbit"]
- if {starterfood::command} is equal to "cooked mutton":
- if {starterfood::number} is set:
- format slot 6 of player with {starterfood::number} of shiny cooked mutton to run [make player execute command "/config starterfood mutton"]
- else:
- format slot 6 of player with shiny cooked mutton to run [make player execute command "/config starterfood mutton"]
- else:
- if {starterfood::number} is set:
- format slot 6 of player with {starterfood::number} of cooked mutton to run [make player execute command "/config starterfood mutton"]
- else:
- format slot 6 of player with cooked mutton to run [make player execute command "/config starterfood mutton"]
- format slot 7 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 8 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 9 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 10 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 11 of player with green clay named "&8⫸ &2+5" to run [make player execute command "/config starterfood +5"]
- format slot 12 of player with light green clay named "&8⫸ &a+1" to run [make player execute command "/config starterfood +1"]
- format slot 13 of player with yellow clay named "&8⫸ &e0" to run [make player execute command "/config starterfood 0"]
- format slot 14 of player with pink clay named "&8⫸ &c-1" to run [make player execute command "/config starterfood -1"]
- format slot 15 of player with red clay named "&8⫸ &4-5" to run [make player execute command "/config starterfood -5"]
- format slot 16 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 17 of player with barrier named "&8⫸ &cBack" to run [make player execute command "/config"]
- else:
- if arg 1 is not set:
- make player execute command "/config"
- else if arg 1 is equal to "teams":
- set {_arg2} to ("%arg 2%" parsed as integer)
- if arg 2 is not set:
- make player execute command "/config teams"
- else if {_arg2} is not between 1 and 110:
- make player execute command "/config teams"
- else if {_arg2} is between 11 and 101:
- make player execute command "/config teams"
- else if {_arg2} is between 1 and 10:
- set {TeamsNumbers} to {_arg2}
- if {TeamsNumbers} is 1:
- make command sender execute command "team reset"
- set {TeamsStatus} to false
- set {TeamsNumbersName} to "FFA"
- loop all players:
- set slot 8 of loop-player to air
- else:
- set {TeamsStatus} to true
- set {TeamsNumbersName} to "Chosen To%{TeamsNumbers}%"
- loop all players:
- set slot 8 of loop-player to 1 of shiny name tag named "&6&lThe Teams &r&7(Right-Click)" with lore "&fClick to see the teams."
- broadcast "&a&lTeam &r&8⫸ &7Number of players per teams: &6%{TeamsNumbers}%"
- execute command "/updatescoreboard"
- make player execute command "/config teams"
- else if {_arg2} is between 101 and 110:
- if {TeamsNumbers} is equal to 1:
- make command sender execute command "team reset"
- set {TeamsNumbers} to {_arg2}
- set {TeamsStatus} to false
- loop all players:
- set slot 8 of loop-player to air
- set {TeamsNumbersName} to "Random To%({TeamsNumbers} - 100)%"
- broadcast "&a&lTeam &r&8⫸ &7Number of players per teams: &6Random %({TeamsNumbers} - 100)%"
- execute command "/updatescoreboard"
- make player execute command "/config teams"
- else:
- make player execute command "/config teams"
- else if arg 1 is equal to "border":
- if arg 2 is equal to "+500":
- if {border} is smaller than 4501:
- set {border} to ({border} + 500)
- if command sender is not in world "world":
- set {_loc} to location of command sender
- teleport command sender to location (0, 100, 0) in world "world"
- make command sender execute command "/worldborder set %{border}%"
- if {_loc} is set:
- teleport command sender to {_loc}
- else if arg 2 is equal to "+100":
- if {border} is smaller than 4901:
- set {border} to ({border} + 100)
- if command sender is not in world "world":
- set {_loc} to location of command sender
- teleport command sender to location (0, 100, 0) in world "world"
- execute command "/worldborder set %{border}%"
- if {_loc} is set:
- teleport command sender to {_loc}
- else if arg 2 is equal to "-100":
- if {border} is greater than 599:
- set {border} to ({border} - 100)
- if command sender is not in world "world":
- set {_loc} to location of command sender
- teleport command sender to location (0, 100, 0) in world "world"
- execute command "/worldborder set %{border}%"
- if {_loc} is set:
- teleport command sender to {_loc}
- else if arg 2 is equal to "-500":
- if {border} is greater than 999:
- set {border} to ({border} - 500)
- if command sender is not in world "world":
- set {_loc} to location of command sender
- teleport command sender to location (0, 100, 0) in world "world"
- execute command "/worldborder set %{border}%"
- if {_loc} is set:
- teleport command sender to {_loc}
- else if arg 2 is equal to "2000":
- set {border} to 2000
- if command sender is not in world "world":
- set {_loc} to location of command sender
- teleport command sender to location (0, 100, 0) in world "world"
- execute command "/worldborder set %{border}%"
- if {_loc} is set:
- teleport command sender to {_loc}
- make player execute command "/config border"
- else if arg 1 is equal to "times":
- if arg 2 is equal to "+10pvp":
- if {pvpTime} is smaller than 191:
- if ({meetupTime} - ({pvpTime} + 10)) is greater than 4:
- set {pvpTime} to ({pvpTime} + 10)
- set {pvpTab} to "%{pvpTime}%:00"
- else if arg 2 is equal to "+5pvp":
- if {pvpTime} is smaller than 196:
- if ({meetupTime} - ({pvpTime} + 5)) is greater than 4:
- set {pvpTime} to ({pvpTime} + 5)
- set {pvpTab} to "%{pvpTime}%:00"
- else if arg 2 is equal to "-5pvp":
- if {pvpTime} is greater than 9:
- if ({meetupTime} - ({pvpTime} - 5)) is greater than 4:
- set {pvpTime} to ({pvpTime} - 5)
- set {pvpTab} to "%{pvpTime}%:00"
- else if arg 2 is equal to "-10pvp":
- if {pvpTime} is greater than 14:
- if ({meetupTime} - ({pvpTime} - 10)) is greater than 4:
- set {pvpTime} to ({pvpTime} - 10)
- set {pvpTab} to "%{pvpTime}%:00"
- else if arg 2 is equal to "+10meetup":
- if {meetupTime} is smaller than 291:
- if (({meetupTime} + 10) - {pvpTime}) is greater than 4:
- set {meetupTime} to ({meetupTime} + 10)
- set {meetupTab} to "%{meetupTime}%:00"
- else if arg 2 is equal to "+5meetup":
- if {meetupTime} is smaller than 296:
- if (({meetupTime} + 5) - {pvpTime}) is greater than 4:
- set {meetupTime} to ({meetupTime} + 5)
- set {meetupTab} to "%{meetupTime}%:00"
- else if arg 2 is equal to "-5meetup":
- if {meetupTime} is greater than 14:
- if (({meetupTime} - 5) - {pvpTime}) is greater than 4:
- set {meetupTime} to ({meetupTime} - 5)
- set {meetupTab} to "%{meetupTime}%:00"
- else if arg 2 is equal to "-10meetup":
- if {meetupTime} is greater than 19:
- if (({meetupTime} - 10) - {pvpTime}) is greater than 4:
- set {meetupTime} to ({meetupTime} - 10)
- set {meetupTab} to "%{meetupTime}%:00"
- else if arg 2 is equal to "default":
- set {pvpTime} to 20
- set {pvpTab} to "%{pvpTime}%:00"
- set {meetupTime} to 80
- set {meetupTab} to "%{meetupTime}%:00"
- make player execute command "/config times"
- else if arg 1 is equal to "starterfood":
- if arg 2 is equal to "beef":
- set {starterfood::command} to "cooked beef"
- if {starterfood::number} is set:
- set {starterfood::name} to "%{starterfood::number}% Cooked Beef"
- else:
- set {starterfood::number} to 1
- set {starterfood::name} to "%{starterfood::number}% Cooked Beef"
- else if arg 2 is equal to "porkchop":
- set {starterfood::command} to "cooked porkchop"
- if {starterfood::number} is set:
- set {starterfood::name} to "%{starterfood::number}% Cooked Porkchop"
- else:
- set {starterfood::number} to 1
- set {starterfood::name} to "%{starterfood::number}% Cooked Porkchop"
- else if arg 2 is equal to "chicken":
- set {starterfood::command} to "cooked chicken"
- if {starterfood::number} is set:
- set {starterfood::name} to "%{starterfood::number}% Cooked Chicken"
- else:
- set {starterfood::number} to 1
- set {starterfood::name} to "%{starterfood::number}% Cooked Chicken"
- else if arg 2 is equal to "rabbit":
- set {starterfood::command} to "cooked rabbit"
- if {starterfood::number} is set:
- set {starterfood::name} to "%{starterfood::number}% Cooked Rabbit"
- else:
- set {starterfood::number} to 1
- set {starterfood::name} to "%{starterfood::number}% Cooked Rabbit"
- else if arg 2 is equal to "mutton":
- set {starterfood::command} to "cooked mutton"
- if {starterfood::number} is set:
- set {starterfood::name} to "%{starterfood::number}% Cooked Mutton"
- else:
- set {starterfood::number} to 1
- set {starterfood::name} to "%{starterfood::number}% Cooked Mutton"
- else if arg 2 is equal to "+5":
- if {starterfood::number} is set:
- if {starterfood::number} is equal to 1:
- set {starterfood::number} to 5
- else:
- if {starterfood::number} is smaller than 60:
- set {starterfood::number} to ({starterfood::number} + 5)
- else:
- set {starterfood::number} to 5
- if {starterfood::command} is not set:
- set {starterfood::name} to "%{starterfood::number}% Cooked Beef"
- else if {starterfood::command} is equal to "cooked beef":
- set {starterfood::name} to "%{starterfood::number}% Cooked Beef"
- else if {starterfood::command} is equal to "cooked porkchop":
- set {starterfood::name} to "%{starterfood::number}% Cooked Porkchop"
- else if {starterfood::command} is equal to "cooked chicken":
- set {starterfood::name} to "%{starterfood::number}% Cooked Chicken"
- else if {starterfood::command} is equal to "cooked rabbit":
- set {starterfood::name} to "%{starterfood::number}% Cooked Rabbit"
- else if {starterfood::command} is equal to "cooked mutton":
- set {starterfood::name} to "%{starterfood::number}% Cooked Mutton"
- else if arg 2 is equal to "+1":
- if {starterfood::number} is set:
- if {starterfood::number} is equal to 1:
- set {starterfood::number} to 1
- else:
- if {starterfood::number} is smaller than 64:
- set {starterfood::number} to ({starterfood::number} + 1)
- else:
- set {starterfood::number} to 1
- if {starterfood::command} is not set:
- set {starterfood::name} to "%{starterfood::number}% Cooked Beef"
- else if {starterfood::command} is equal to "cooked beef":
- set {starterfood::name} to "%{starterfood::number}% Cooked Beef"
- else if {starterfood::command} is equal to "cooked porkchop":
- set {starterfood::name} to "%{starterfood::number}% Cooked Porkchop"
- else if {starterfood::command} is equal to "cooked chicken":
- set {starterfood::name} to "%{starterfood::number}% Cooked Chicken"
- else if {starterfood::command} is equal to "cooked rabbit":
- set {starterfood::name} to "%{starterfood::number}% Cooked Rabbit"
- else if {starterfood::command} is equal to "cooked mutton":
- set {starterfood::name} to "%{starterfood::number}% Cooked Mutton"
- else if arg 2 is equal to "-1":
- if {starterfood::number} is set:
- if {starterfood::number} is greater than 1:
- set {starterfood::number} to ({starterfood::number} - 1)
- if {starterfood::command} is not set:
- set {starterfood::name} to "%{starterfood::number}% Cooked Beef"
- else if {starterfood::command} is equal to "cooked beef":
- set {starterfood::name} to "%{starterfood::number}% Cooked Beef"
- else if {starterfood::command} is equal to "cooked porkchop":
- set {starterfood::name} to "%{starterfood::number}% Cooked Porkchop"
- else if {starterfood::command} is equal to "cooked chicken":
- set {starterfood::name} to "%{starterfood::number}% Cooked Chicken"
- else if {starterfood::command} is equal to "cooked rabbit":
- set {starterfood::name} to "%{starterfood::number}% Cooked Rabbit"
- else if {starterfood::command} is equal to "cooked mutton":
- set {starterfood::name} to "%{starterfood::number}% Cooked Mutton"
- else if arg 2 is equal to "-5":
- if {starterfood::number} is set:
- if {starterfood::number} is greater than 5:
- set {starterfood::number} to ({starterfood::number} - 5)
- if {starterfood::command} is not set:
- set {starterfood::name} to "%{starterfood::number}% Cooked Beef"
- else if {starterfood::command} is equal to "cooked beef":
- set {starterfood::name} to "%{starterfood::number}% Cooked Beef"
- else if {starterfood::command} is equal to "cooked porkchop":
- set {starterfood::name} to "%{starterfood::number}% Cooked Porkchop"
- else if {starterfood::command} is equal to "cooked chicken":
- set {starterfood::name} to "%{starterfood::number}% Cooked Chicken"
- else if {starterfood::command} is equal to "cooked rabbit":
- set {starterfood::name} to "%{starterfood::number}% Cooked Rabbit"
- else if {starterfood::command} is equal to "cooked mutton":
- set {starterfood::name} to "%{starterfood::number}% Cooked Mutton"
- else if arg 2 is equal to "0":
- delete {starterfood::*}
- make player execute command "/config starterfood"
- else:
- if arg 2 is not set:
- if arg 1 is not set:
- open chest with 3 row named "&8⫸ &4Configuration" to player
- wait 1 tick
- if {chat} is true:
- format slot 0 of player with shiny paper named "&8⫸ &7Chat: &aON" to run [make player execute command "/config chat"]
- else:
- format slot 0 of player with paper named "&8⫸ &7Chat: &cOFF" to run [make player execute command "/config chat"]
- if {msg} is true:
- format slot 1 of player with shiny banner:15 named "&8⫸ &7Private messages: &aON" to run [set {msg} to false]->[make player execute command "/config"]
- else:
- format slot 1 of player with banner:15 named "&8⫸ &7Private messages: &cOFF" to run [set {msg} to true]->[make player execute command "/config"]
- if {weather} is true:
- format slot 2 of player with shiny daylight sensor named "&8⫸ &7Eternal Sunny: &aON" to run [set {weather} to false]->[make player execute command "/config"]
- else:
- format slot 2 of player with daylight sensor named "&8⫸ &7Eternal Sunny: &cOFF" to run [set {weather} to true]->[make player execute command "/config"]
- if {eternalDay} is true:
- format slot 3 of player with shiny torch named "&8⫸ &7Eternal Day: &aON" to run [set {eternalDay} to false]->[make player execute command "/config"]
- else:
- format slot 3 of player with torch named "&8⫸ &7Eternal Day: &cOFF" to run [set {eternalDay} to true]->[make player execute command "/config"]
- format slot 26 of player with barrier named "&8⫸ &cClose" to close
- else if arg 1 is equal to "chat":
- if {chat} is true:
- set {chat} to false
- broadcast "&a&lUHC &r&8⫸ &7Chat enabled."
- else:
- set {chat} to true
- broadcast "&a&lUHC &r&8⫸ &7Chat disabled."
- make player execute command "/config"
- else:
- send "Unknown command." to command sender
- command /team [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- make command sender execute command "/team help"
- else if arg 1 is equal to "help":
- send "&a&lUHC &r&8⫸ &7Manage teams:" to command sender
- send "&8⫸ &f/invite &7- &oInvite a player." to command sender
- send "&8⫸ &f/accept &7- &oAccept an invitation." to command sender
- send "&8⫸ &f/leave &7- &oLeave your team." to command sender
- send "&8⫸ &f/list &7- &oSee the teams." to command sender
- send "&8⫸ &f/t <message> &7- &oSend a message to your team." to command sender
- send "&8⫸ &f/tc &7- &oSend coord to your team." to command sender
- if {TeamsStatus} is true:
- if arg 1 is equal to "invite":
- if {UHCStart} is not true:
- set {_arg2} to ("%arg 2%" parsed as offlineplayer)
- if {Team::%command sender%} is set:
- set {_CountMembers} to 1
- if {UHCStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {_name} is not command sender:
- if {Team::%{_name}%} is equal to {Team::%command sender%}:
- add 1 to {_CountMembers}
- else:
- loop all players:
- if loop-player is not command sender:
- if {Team::%loop-player%} is equal to {Team::%command sender%}:
- add 1 to {_CountMembers}
- if arg 2 is not set:
- send "&a&lTeam &r&8⫸ &7Usage: /invite <player>" to command sender
- stop trigger
- else if arg 2 is equal to command sender:
- send "&a&lTeam &r&8⫸ &7You can not invite yourself." to command sender
- stop trigger
- else if {Spec::%{_arg2}%} is set:
- send "&a&lTeam &r&8⫸ &7This player is a spectator." to command sender
- stop trigger
- else if {Spec::%player%} is set:
- send "&a&lTeam &r&8⫸ &7You are spectator." to command sender
- stop trigger
- else if {_CountMembers} is equal to {TeamsNumbers}:
- send "&a&lTeam &r&8⫸ &7Your team is already full." to command sender
- stop trigger
- else if {invite::%{_arg2}%::%player%} is not false:
- send "&a&lTeam &r&8⫸ &7You have already invite this player." to command sender
- stop trigger
- else:
- if {_arg2} is online:
- if {Team::%player%} is not set:
- if {UHC1} is equal to 0:
- set {UHC1} to 1
- set {chatname::%player%} to "&0%name of player%"
- execute command "/ne prefix %player% &0"
- set {Team::%player%} to "UHC1"
- else if {UHC2} is equal to 0:
- set {UHC2} to 1
- set {chatname::%player%} to "&1%name of player%"
- execute command "/ne prefix %player% &1"
- set {Team::%player%} to "UHC2"
- else if {UHC3} is equal to 0:
- set {UHC3} to 1
- set {chatname::%player%} to "&2%name of player%"
- execute command "/ne prefix %player% &2"
- set {Team::%player%} to "UHC3"
- else if {UHC4} is equal to 0:
- set {UHC4} to 1
- set {chatname::%player%} to "&3%name of player%"
- execute command "/ne prefix %player% &3"
- set {Team::%player%} to "UHC4"
- else if {UHC5} is equal to 0:
- set {UHC5} to 1
- set {chatname::%player%} to "&4%name of player%"
- execute command "/ne prefix %player% &4"
- set {Team::%player%} to "UHC5"
- else if {UHC6} is equal to 0:
- set {UHC6} to 1
- set {chatname::%player%} to "&5%name of player%"
- execute command "/ne prefix %player% &5"
- set {Team::%player%} to "UHC6"
- else if {UHC7} is equal to 0:
- set {UHC7} to 1
- set {chatname::%player%} to "&6%name of player%"
- execute command "/ne prefix %player% &6"
- set {Team::%player%} to "UHC7"
- else if {UHC8} is equal to 0:
- set {UHC8} to 1
- set {chatname::%player%} to "&7%name of player%"
- execute command "/ne prefix %player% &7"
- set {Team::%player%} to "UHC8"
- else if {UHC9} is equal to 0:
- set {UHC9} to 1
- set {chatname::%player%} to "&8%name of player%"
- execute command "/ne prefix %player% &8"
- set {Team::%player%} to "UHC9"
- else if {UHC10} is equal to 0:
- set {UHC10} to 1
- set {chatname::%player%} to "&9%name of player%"
- execute command "/ne prefix %player% &9"
- set {Team::%player%} to "UHC10"
- else if {UHC11} is equal to 0:
- set {UHC11} to 1
- set {chatname::%player%} to "&a%name of player%"
- execute command "/ne prefix %player% &a"
- set {Team::%player%} to "UHC11"
- else if {UHC12} is equal to 0:
- set {UHC12} to 1
- set {chatname::%player%} to "&b%name of player%"
- execute command "/ne prefix %player% &b"
- set {Team::%player%} to "UHC12"
- else if {UHC13} is equal to 0:
- set {UHC13} to 1
- set {chatname::%player%} to "&c%name of player%"
- execute command "/ne prefix %player% &c"
- set {Team::%player%} to "UHC13"
- else if {UHC14} is equal to 0:
- set {UHC14} to 1
- set {chatname::%player%} to "&d%name of player%"
- execute command "/ne prefix %player% &d"
- set {Team::%player%} to "UHC14"
- else if {UHC15} is equal to 0:
- set {UHC15} to 1
- set {chatname::%player%} to "&e%name of player%"
- execute command "/ne prefix %player% &e"
- set {Team::%player%} to "UHC15"
- set {invite::%arg 2%::%player%} to {Team::%player%}
- send "&a&lTeam &r&8⫸ &7You have received an invitation from &6%player%&7." to (arg 2 parsed as offlineplayer)
- execute command "/tellraw %(arg 2 parsed as offlineplayer)% ['',{'text':'Team ','color':'green','bold':true},{'text':'⫸ ','color':'dark_gray','bold':false},{'text':'To accept, ','color':'gray'},{'text':'Click on this message','color':'aqua','bold':false,'italic':true,'clickEvent':{'action':'run_command','value':'/team accept %player%'}},{'text':'.','color':'gray','bold':false,'italic':false}]"
- send "&a&lTeam &r&8⫸ &7Invitation sent to &6%(arg 2 parsed as offlineplayer)%&r&7." to command sender
- else:
- send "&a&lTeam &r&8⫸ &7This player is not connected." to command sender
- stop trigger
- else:
- send "&a&lTeam &r&8⫸ &7The UHC has already begun." to command sender
- else if arg 1 is equal to "accept":
- if {UHCStart} is not true:
- if {invite::%player%::*} is set:
- set {_arg2} to ("%arg 2%" parsed as offlineplayer)
- if arg 2 is not set:
- send "&a&lTeam &r&8⫸ &7Usage: /accept <player>" to command sender
- stop trigger
- else if arg 2 is equal to command sender:
- send "&a&lTeam &r&8⫸ &7This player has not invited you." to command sender
- stop trigger
- else if {Spec::%command sender%} is set:
- send "&a&lTeam &r&8⫸ &7You are spectator." to command sender
- stop trigger
- else if {Spec::%{_arg2}%} is set:
- send "&a&lTeam &r&8⫸ &7This invitation has been canceled." to command sender
- stop trigger
- else if {invite::%player%::%arg 2%} is not set:
- send "&a&lTeam &r&8⫸ &7This player has not invited you." to command sender
- stop trigger
- else if {invite::%player%::%arg 2%} is false:
- send "&a&lTeam &r&8⫸ &7This invitation has been canceled." to command sender
- stop trigger
- else:
- if {Team::%player%} is set:
- set {chatname::%player%} to "&7%name of player%"
- execute command "/ne clear %player%"
- set {_NotEmpty} to false
- if {UHCStart} is not true:
- loop all players:
- if loop-player is not command sender:
- if {Team::%loop-player%} is equal to {Team::%player%}:
- set {_NotEmpty} to true
- stop loop
- else:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {_name} is not command sender:
- if {Team::%{_name}%} is equal to {Team::%player%}:
- set {_NotEmpty} to true
- stop loop
- if {_NotEmpty} is false:
- if {Team::%player%} is equal to "UHC1":
- set {UHC1} to 0
- else if {Team::%player%} is equal to "UHC2":
- set {UHC2} to 0
- else if {Team::%player%} is equal to "UHC3":
- set {UHC3} to 0
- else if {Team::%player%} is equal to "UHC4":
- set {UHC4} to 0
- else if {Team::%player%} is equal to "UHC5":
- set {UHC5} to 0
- else if {Team::%player%} is equal to "UHC6":
- set {UHC6} to 0
- else if {Team::%player%} is equal to "UHC7":
- set {UHC7} to 0
- else if {Team::%player%} is equal to "UHC8":
- set {UHC8} to 0
- else if {Team::%player%} is equal to "UHC9":
- set {UHC9} to 0
- else if {Team::%player%} is equal to "UHC10":
- set {UHC10} to 0
- else if {Team::%player%} is equal to "UHC11":
- set {UHC11} to 0
- else if {Team::%player%} is equal to "UHC12":
- set {UHC12} to 0
- else if {Team::%player%} is equal to "UHC13":
- set {UHC13} to 0
- else if {Team::%player%} is equal to "UHC14":
- set {UHC14} to 0
- else if {Team::%player%} is equal to "UHC15":
- set {UHC15} to 0
- delete {Team::%player%}
- send "&a&lTeam &r&8⫸ &7You left your team." to command sender
- if {invite::%player%::%arg 2%} is equal to "UHC1":
- set {chatname::%player%} to "&0%name of player%"
- execute command "/ne prefix %player% &0"
- set {Team::%player%} to "UHC1"
- else if {invite::%player%::%arg 2%} is equal to "UHC2":
- set {chatname::%player%} to "&1%name of player%"
- execute command "/ne prefix %player% &1"
- set {Team::%player%} to "UHC2"
- else if {invite::%player%::%arg 2%} is equal to "UHC3":
- set {chatname::%player%} to "&2%name of player%"
- execute command "/ne prefix %player% &2"
- set {Team::%player%} to "UHC3"
- else if {invite::%player%::%arg 2%} is equal to "UHC4":
- set {chatname::%player%} to "&3%name of player%"
- execute command "/ne prefix %player% &3"
- set {Team::%player%} to "UHC4"
- else if {invite::%player%::%arg 2%} is equal to "UHC5":
- set {chatname::%player%} to "&4%name of player%"
- execute command "/ne prefix %player% &4"
- set {Team::%player%} to "UHC5"
- else if {invite::%player%::%arg 2%} is equal to "UHC6":
- set {chatname::%player%} to "&5%name of player%"
- execute command "/ne prefix %player% &5"
- set {Team::%player%} to "UHC6"
- else if {invite::%player%::%arg 2%} is equal to "UHC7":
- set {chatname::%player%} to "&6%name of player%"
- execute command "/ne prefix %player% &6"
- set {Team::%player%} to "UHC7"
- else if {invite::%player%::%arg 2%} is equal to "UHC8":
- set {chatname::%player%} to "&7%name of player%"
- execute command "/ne prefix %player% &7"
- set {Team::%player%} to "UHC8"
- else if {invite::%player%::%arg 2%} is equal to "UHC9":
- set {chatname::%player%} to "&8%name of player%"
- execute command "/ne prefix %player% &8"
- set {Team::%player%} to "UHC9"
- else if {invite::%player%::%arg 2%} is equal to "UHC10":
- set {chatname::%player%} to "&9%name of player%"
- execute command "/ne prefix %player% &9"
- set {Team::%player%} to "UHC10"
- else if {invite::%player%::%arg 2%} is equal to "UHC11":
- set {chatname::%player%} to "&a%name of player%"
- execute command "/ne prefix %player% &a"
- set {Team::%player%} to "UHC11"
- else if {invite::%player%::%arg 2%} is equal to "UHC12":
- set {chatname::%player%} to "&b%name of player%"
- execute command "/ne prefix %player% &b"
- set {Team::%player%} to "UHC12"
- else if {invite::%player%::%arg 2%} is equal to "UHC13":
- set {chatname::%player%} to "&c%name of player%"
- execute command "/ne prefix %player% &c"
- set {Team::%player%} to "UHC13"
- else if {invite::%player%::%arg 2%} is equal to "UHC14":
- set {chatname::%player%} to "&d%name of player%"
- execute command "/ne prefix %player% &d"
- set {Team::%player%} to "UHC14"
- else if {invite::%player%::%arg 2%} is equal to "UHC15":
- set {chatname::%player%} to "&e%name of player%"
- execute command "/ne prefix %player% &e"
- set {Team::%player%} to "UHC15"
- send "&a&lTeam &r&8⫸ &7You joined the team of &6%arg 2%&7." to command sender
- loop all players:
- if loop-player is not command sender:
- if {Team::%loop-player%} is equal to {Team::%player%}:
- send "&a&lTeam &r&8⫸ &7&6%player% &7joined the team." to loop-player
- set {invite::%player%::%arg 2%} to false
- else:
- send "&a&lTeam &r&8⫸ &7You did not receive invitations." to command sender
- stop trigger
- else:
- send "&a&lTeam &r&8⫸ &7The UHC has already begun." to command sender
- else if arg 1 is equal to "leave":
- if {UHCStart} is not true:
- if {Team::%player%} is not set:
- send "&a&lTeam &r&8⫸ &7You are not in a team." to command sender
- stop trigger
- else if {Team::%player%} is set:
- set {chatname::%player%} to "&7%name of player%"
- execute command "/ne clear %player%"
- set {_NotEmpty} to false
- if {UHCStart} is not true:
- loop all players:
- if loop-player is not command sender:
- if {Team::%loop-player%} is equal to {Team::%player%}:
- set {_NotEmpty} to true
- stop loop
- else:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {_name} is not command sender:
- if {Team::%{_name}%} is equal to {Team::%player%}:
- set {_NotEmpty} to true
- stop loop
- if {_NotEmpty} is false:
- if {Team::%player%} is equal to "UHC1":
- set {UHC1} to 0
- else if {Team::%player%} is equal to "UHC2":
- set {UHC2} to 0
- else if {Team::%player%} is equal to "UHC3":
- set {UHC3} to 0
- else if {Team::%player%} is equal to "UHC4":
- set {UHC4} to 0
- else if {Team::%player%} is equal to "UHC5":
- set {UHC5} to 0
- else if {Team::%player%} is equal to "UHC6":
- set {UHC6} to 0
- else if {Team::%player%} is equal to "UHC7":
- set {UHC7} to 0
- else if {Team::%player%} is equal to "UHC8":
- set {UHC8} to 0
- else if {Team::%player%} is equal to "UHC9":
- set {UHC9} to 0
- else if {Team::%player%} is equal to "UHC10":
- set {UHC10} to 0
- else if {Team::%player%} is equal to "UHC11":
- set {UHC11} to 0
- else if {Team::%player%} is equal to "UHC12":
- set {UHC12} to 0
- else if {Team::%player%} is equal to "UHC13":
- set {UHC13} to 0
- else if {Team::%player%} is equal to "UHC14":
- set {UHC14} to 0
- else if {Team::%player%} is equal to "UHC15":
- set {UHC15} to 0
- delete {Team::%player%}
- send "&a&lTeam &r&8⫸ &7You left your team."
- else:
- send "&a&lTeam &r&8⫸ &7The UHC has already begun." to command sender
- else:
- if arg 1 is equal to "invite":
- send "&a&lTeam &r&8⫸ &7The teams are not available." to command sender
- else if arg 1 is equal to "accept":
- send "&a&lTeam &r&8⫸ &7The teams are not available." to command sender
- else if arg 1 is equal to "leave":
- send "&a&lTeam &r&8⫸ &7The teams are not available." to command sender
- if arg 1 is equal to "reset":
- set {_access} to false
- if {Host::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if {UHCStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- set {chatname::%loop-index%} to "&7%{_name}%"
- execute command "/ne clear %{_name}%"
- else:
- loop all players:
- set {chatname::%loop-player%} to "&7%name of loop-player%"
- execute command "/ne clear %loop-player%"
- delete {Team::*}
- delete {invite::*}
- set {UHC1} to 0
- set {UHC2} to 0
- set {UHC3} to 0
- set {UHC4} to 0
- set {UHC5} to 0
- set {UHC6} to 0
- set {UHC7} to 0
- set {UHC8} to 0
- set {UHC9} to 0
- set {UHC10} to 0
- set {UHC11} to 0
- set {UHC12} to 0
- set {UHC13} to 0
- set {UHC14} to 0
- set {UHC15} to 0
- broadcast "&a&lTeam &r&8⫸ &7Teams reset."
- else:
- send "Unknown command." to command sender
- else if arg 1 is equal to "list":
- set {_Slot} to 0
- open chest with 2 row named "&8⫸ &4Teams" to player
- wait 1 tick
- if {UHC1} is equal to 1:
- set {_Members} to ""
- set {_NbMembers} to 0
- if {UHStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {Team::%{_name}%} is equal to "UHC1":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&6%{_name}%"
- else:
- set {_Members} to "%{_Members}% ||&6%{_name}%"
- add 1 to {_NbMembers}
- else:
- loop all players:
- if {Team::%loop-player%} is equal to "UHC1":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&f%loop-player%"
- else:
- set {_Members} to "%{_Members}% ||&f%loop-player%"
- add 1 to {_NbMembers}
- format slot {_Slot} of player with black stained clay named "&8⫸ &r&0Team Black" with lore "%{_Members}%" to be unstealable
- add 1 to {_Slot}
- if {UHC2} is equal to 1:
- set {_Members} to ""
- set {_NbMembers} to 0
- if {UHStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {Team::%{_name}%} is equal to "UHC2":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&6%{_name}%"
- else:
- set {_Members} to "%{_Members}% ||&6%{_name}%"
- add 1 to {_NbMembers}
- else:
- loop all players:
- if {Team::%loop-player%} is equal to "UHC2":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&f%loop-player%"
- else:
- set {_Members} to "%{_Members}% ||&f%loop-player%"
- add 1 to {_NbMembers}
- format slot {_Slot} of player with blue stained clay named "&8⫸ &r&1Team Dark Blue" with lore "%{_Members}%" to be unstealable
- add 1 to {_Slot}
- if {UHC3} is equal to 1:
- set {_Members} to ""
- set {_NbMembers} to 0
- if {UHStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {Team::%{_name}%} is equal to "UHC3":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&6%{_name}%"
- else:
- set {_Members} to "%{_Members}% ||&6%{_name}%"
- add 1 to {_NbMembers}
- else:
- loop all players:
- if {Team::%loop-player%} is equal to "UHC3":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&f%loop-player%"
- else:
- set {_Members} to "%{_Members}% ||&f%loop-player%"
- add 1 to {_NbMembers}
- format slot {_Slot} of player with green stained clay named "&8⫸ &r&2Team Dark Green" with lore "%{_Members}%" to be unstealable
- add 1 to {_Slot}
- if {UHC4} is equal to 1:
- set {_Members} to ""
- set {_NbMembers} to 0
- if {UHStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {Team::%{_name}%} is equal to "UHC4":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&6%{_name}%"
- else:
- set {_Members} to "%{_Members}% ||&6%{_name}%"
- add 1 to {_NbMembers}
- else:
- loop all players:
- if {Team::%loop-player%} is equal to "UHC4":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&f%loop-player%"
- else:
- set {_Members} to "%{_Members}% ||&f%loop-player%"
- add 1 to {_NbMembers}
- format slot {_Slot} of player with brown stained clay named "&8⫸ &r&3Team Dark Aqua" with lore "%{_Members}%" to be unstealable
- add 1 to {_Slot}
- if {UHC5} is equal to 1:
- set {_Members} to ""
- set {_NbMembers} to 0
- if {UHStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {Team::%{_name}%} is equal to "UHC5":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&6%{_name}%"
- else:
- set {_Members} to "%{_Members}% ||&6%{_name}%"
- add 1 to {_NbMembers}
- else:
- loop all players:
- if {Team::%loop-player%} is equal to "UHC5":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&f%loop-player%"
- else:
- set {_Members} to "%{_Members}% ||&f%loop-player%"
- add 1 to {_NbMembers}
- format slot {_Slot} of player with red stained clay named "&8⫸ &r&4Team Dark Red" with lore "%{_Members}%" to be unstealable
- add 1 to {_Slot}
- if {UHC6} is equal to 1:
- set {_Members} to ""
- if {UHStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {Team::%{_name}%} is equal to "UHC6":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&6%{_name}%"
- else:
- set {_Members} to "%{_Members}% ||&6%{_name}%"
- add 1 to {_NbMembers}
- else:
- loop all players:
- if {Team::%loop-player%} is equal to "UHC6":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&f%loop-player%"
- else:
- set {_Members} to "%{_Members}% ||&f%loop-player%"
- add 1 to {_NbMembers}
- format slot {_Slot} of player with purple stained clay named "&8⫸ &r&5Team Dark Purple" with lore "%{_Members}%" to be unstealable
- add 1 to {_Slot}
- if {UHC7} is equal to 1:
- set {_Members} to ""
- set {_NbMembers} to 0
- if {UHStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {Team::%{_name}%} is equal to "UHC7":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&6%{_name}%"
- else:
- set {_Members} to "%{_Members}% ||&6%{_name}%"
- add 1 to {_NbMembers}
- else:
- loop all players:
- if {Team::%loop-player%} is equal to "UHC7":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&f%loop-player%"
- else:
- set {_Members} to "%{_Members}% ||&f%loop-player%"
- add 1 to {_NbMembers}
- format slot {_Slot} of player with orange stained clay named "&8⫸ &r&6Team Gold" with lore "%{_Members}%" to be unstealable
- add 1 to {_Slot}
- if {UHC8} is equal to 1:
- set {_Members} to ""
- set {_NbMembers} to 0
- if {UHStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {Team::%{_name}%} is equal to "UHC8":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&6%{_name}%"
- else:
- set {_Members} to "%{_Members}% ||&6%{_name}%"
- add 1 to {_NbMembers}
- else:
- loop all players:
- if {Team::%loop-player%} is equal to "UHC8":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&f%loop-player%"
- else:
- set {_Members} to "%{_Members}% ||&f%loop-player%"
- add 1 to {_NbMembers}
- format slot {_Slot} of player with light gray stained clay named "&8⫸ &r&7Team Gray" with lore "%{_Members}%" to be unstealable
- add 1 to {_Slot}
- if {UHC9} is equal to 1:
- set {_Members} to ""
- set {_NbMembers} to 0
- if {UHStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {Team::%{_name}%} is equal to "UHC9":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&6%{_name}%"
- else:
- set {_Members} to "%{_Members}% ||&6%{_name}%"
- add 1 to {_NbMembers}
- else:
- loop all players:
- if {Team::%loop-player%} is equal to "UHC9":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&f%loop-player%"
- else:
- set {_Members} to "%{_Members}% ||&f%loop-player%"
- add 1 to {_NbMembers}
- format slot {_Slot} of player with gray stained clay named "&8⫸ &r&8Team Dark Gray" with lore "%{_Members}%" to be unstealable
- add 1 to {_Slot}
- if {UHC10} is equal to 1:
- set {_Members} to ""
- set {_NbMembers} to 0
- if {UHStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {Team::%{_name}%} is equal to "UHC10":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&6%{_name}%"
- else:
- set {_Members} to "%{_Members}% ||&6%{_name}%"
- add 1 to {_NbMembers}
- else:
- loop all players:
- if {Team::%loop-player%} is equal to "UHC10":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&f%loop-player%"
- else:
- set {_Members} to "%{_Members}% ||&f%loop-player%"
- add 1 to {_NbMembers}
- format slot {_Slot} of player with light blue stained clay named "&8⫸ &r&9Team Blue" with lore "%{_Members}%" to be unstealable
- add 1 to {_Slot}
- if {UHC11} is equal to 1:
- set {_Members} to ""
- set {_NbMembers} to 0
- if {UHStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {Team::%{_name}%} is equal to "UHC11":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&6%{_name}%"
- else:
- set {_Members} to "%{_Members}% ||&6%{_name}%"
- add 1 to {_NbMembers}
- else:
- loop all players:
- if {Team::%loop-player%} is equal to "UHC11":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&f%loop-player%"
- else:
- set {_Members} to "%{_Members}% ||&f%loop-player%"
- add 1 to {_NbMembers}
- format slot {_Slot} of player with light green stained clay named "&8⫸ &r&aTeam Green" with lore "%{_Members}%" to be unstealable
- add 1 to {_Slot}
- if {UHC12} is equal to 1:
- set {_Members} to ""
- set {_NbMembers} to 0
- if {UHStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {Team::%{_name}%} is equal to "UHC12":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&6%{_name}%"
- else:
- set {_Members} to "%{_Members}% ||&6%{_name}%"
- add 1 to {_NbMembers}
- else:
- loop all players:
- if {Team::%loop-player%} is equal to "UHC12":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&f%loop-player%"
- else:
- set {_Members} to "%{_Members}% ||&f%loop-player%"
- add 1 to {_NbMembers}
- format slot {_Slot} of player with cyan stained clay named "&8⫸ &r&bTeam Aqua" with lore "%{_Members}%" to be unstealable
- add 1 to {_Slot}
- if {UHC13} is equal to 1:
- set {_Members} to ""
- set {_NbMembers} to 0
- if {UHStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {Team::%{_name}%} is equal to "UHC13":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&6%{_name}%"
- else:
- set {_Members} to "%{_Members}% ||&6%{_name}%"
- add 1 to {_NbMembers}
- else:
- loop all players:
- if {Team::%loop-player%} is equal to "UHC13":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&f%loop-player%"
- else:
- set {_Members} to "%{_Members}% ||&f%loop-player%"
- add 1 to {_NbMembers}
- format slot {_Slot} of player with magenta stained clay named "&8⫸ &r&cTeam Red" with lore "%{_Members}%" to be unstealable
- add 1 to {_Slot}
- if {UHC14} is equal to 1:
- set {_Members} to ""
- set {_NbMembers} to 0
- if {UHStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {Team::%{_name}%} is equal to "UHC14":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&6%{_name}%"
- else:
- set {_Members} to "%{_Members}% ||&6%{_name}%"
- add 1 to {_NbMembers}
- else:
- loop all players:
- if {Team::%loop-player%} is equal to "UHC14":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&f%loop-player%"
- else:
- set {_Members} to "%{_Members}% ||&f%loop-player%"
- add 1 to {_NbMembers}
- format slot {_Slot} of player with pink stained clay named "&8⫸ &r&dTeam Pink" with lore "%{_Members}%" to be unstealable
- add 1 to {_Slot}
- if {UHC15} is equal to 1:
- set {_Members} to ""
- set {_NbMembers} to 0
- if {UHStart} is true:
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {Team::%{_name}%} is equal to "UHC15":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&6%{_name}%"
- else:
- set {_Members} to "%{_Members}% ||&6%{_name}%"
- add 1 to {_NbMembers}
- else:
- loop all players:
- if {Team::%loop-player%} is equal to "UHC15":
- if {_NbMembers} is equal to 0:
- set {_Members} to "&f%loop-player%"
- else:
- set {_Members} to "%{_Members}% ||&f%loop-player%"
- add 1 to {_NbMembers}
- format slot {_Slot} of player with yellow stained clay named "&8⫸ &r&eTeam Yellow" with lore "%{_Members}%" to be unstealable
- add 1 to {_Slot}
- if {_Slot} is equal to 0:
- format slot 0 of player with redstone named "&8⫸ &cNo teams" to be unstealable
- format slot 17 of player with barrier named "&8⫸ &cClose" to close
- command /invite [<text>]:
- trigger:
- if {TeamsStatus} is true:
- if {UHCStart} is not true:
- if arg 1 is not set:
- send "&a&lTeam &r&8⫸ &7Usage: /invite <player>" to command sender
- stop trigger
- else if arg 1 is equal to "help":
- make player execute command "/team help"
- else:
- make player execute command "/team invite %arg 1%"
- else:
- send "&a&lTeam &r&8⫸ &7The UHC has already begun." to command sender
- else:
- send "&a&lTeam &r&8⫸ &7The teams are not available." to command sender
- command /accept [<text>]:
- trigger:
- if {TeamsStatus} is true:
- if {UHCStart} is not true:
- if arg 1 is not set:
- send "&a&lTeam &r&8⫸ &7Usage: /accept <player>" to command sender
- stop trigger
- else if arg 1 is equal to "help":
- make player execute command "/team help"
- else:
- make player execute command "/team accept %arg 1%"
- else:
- send "&a&lTeam &r&8⫸ &7The UHC has already begun." to command sender
- else:
- send "&a&lTeam &r&8⫸ &7The teams are not available." to command sender
- command /t [<text>]:
- trigger:
- if {Start} is true:
- if arg 1 is set:
- if {Team::%player%} is set:
- loop all players:
- if {Team::%loop-player%} is equal to {Team::%player%}:
- send "&6Team Chat&8 | &r%{chatname::%player%}% &r&8⫸ &f%arg 1%" to loop-player
- else:
- send "&a&lTeam &r&8⫸ &7You are not in a team." to command sender
- else:
- send "&a&lTeam &r&8⫸ &7Usage: /t <message>." to command sender
- else:
- send "&a&lTeam &r&8⫸ &7The UHC has not yet started." to command sender
- command /tc:
- trigger:
- if {Start} is true:
- if {Team::%player%} is set:
- if player is in "world":
- set {_world} to "Overworld"
- else if player is in "world_nether":
- set {_world} to "Nether"
- else if player is in "world_the_end":
- set {_world} to "The End"
- else if player is in "lobby":
- set {_world} to "Lobby"
- else:
- set {_world} to "Inconnu"
- loop all players:
- if {Team::%loop-player%} is equal to {Team::%player%}:
- send "&6Team Chat&8 | &r%{chatname::%player%}% &r&8⫸ &6&ox&r&6%floor(x coord of player)% &f- &6&oy&r&6%floor(y coord of player)% &f- &6&oz&r&6%floor(z coord of player)% &f- &r&6%{_world}%" to loop-player
- else:
- send "&a&lTeam &r&8⫸ &7You are not in a team." to command sender
- else:
- send "&a&lTeam &r&8⫸ &7The UHC has not yet started." to command sender
- command /wh [<text>] [<text>]:
- trigger:
- set {_access} to false
- if {Staff::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if arg 1 is not set:
- make command sender execute command "/wh help"
- else if arg 1 is equal to "help":
- send "&a&lUHC &r&8⫸ &7Usage of /wh:" to command sender
- send "&8⫸ &f/wh add <player> &7- &oAdd player to whitelist" to command sender
- send "&8⫸ &f/wh remove <player> &7- &oRemove player from whitelist" to command sender
- send "&8⫸ &f/wh list &7- &oSee the whitelist" to command sender
- send "&8⫸ &f/wh clear &7- &oClear the whitelist" to command sender
- send "&8⫸ &f/wh <joueur> &7- &oSee if player is in whitelist" to command sender
- else if arg 1 is equal to "add":
- set {_arg2} to ("%arg 2%" parsed as offlineplayer)
- if arg 2 is not set:
- send "&a&lWH &r&8⫸ &7Usage: /wh add <player>" to command sender
- stop trigger
- else if {WH::%{_arg2}%} is set:
- send "&a&lWH &r&8⫸ &7This player is already in whitelist." to command sender
- stop trigger
- else:
- set {WH::%{_arg2}%} to {_arg2}
- send "&a&lWH &r&8⫸ &6%{_arg2}% &7was added to whitelist." to command sender
- else if arg 1 is equal to "remove":
- set {_arg2} to ("%arg 2%" parsed as offlineplayer)
- if arg 2 is not set:
- send "&a&lWH &r&8⫸ &7Usage: /wh remove <player>" to command sender
- stop trigger
- else if {WH::%{_arg2}%} is not set:
- send "&a&lWH &r&8⫸ &7This player is not in whitelist." to command sender
- stop trigger
- else:
- delete {WH::%{_arg2}%}
- send "&a&lWH &r&8⫸ &6%{_arg2}% &7was removed from whitelist." to command sender
- else if arg 1 is equal to "list":
- if {WH::*} is not set:
- send "&a&lWH &r&8⫸ &7Whitelist is empty." to command sender
- stop trigger
- else:
- loop {WH::*}:
- set {_player} to ("%loop-index%" parsed as offlineplayer)
- if {_list} is not set:
- set {_list} to "&6%{_player}%"
- else:
- set {_list} to "%{_list}% &7- &6%{_player}%"
- send "&a&lWH &r&8⫸ &7List: %{_list}%" to command sender
- else if arg 1 is equal to "clear":
- if {WH::*} is not set:
- send "&a&lWH &r&8⫸ &7Whitelist is already empty." to command sender
- stop trigger
- else:
- delete {WH::*}
- send "&a&lWH &r&8⫸ &7Whitelist has been cleared." to command sender
- else:
- set {_arg1} to ("%arg 1%" parsed as offline player)
- if {WH::%{_arg1}%} is set:
- send "&a&lWH &r&8⫸ &6%{_arg1}% &7is in whitelist." to command sender
- else:
- send "&a&lWH &r&8⫸ &6%{_arg1}% &7is not in whitelist." to command sender
- else:
- send "Unknown command." to command sender
- command /staff [<text>] [<text>]:
- trigger:
- if command sender is op:
- if arg 1 is not set:
- make command sender execute command "/staff help"
- else if arg 1 is equal to "help":
- send "&a&lUHC &r&8⫸ &7Usage of /staff:" to command sender
- send "&8⫸ &f/staff add <player> &7- &oAdd staff member." to command sender
- send "&8⫸ &f/staff remove <player> &7- &oRemove staff member." to command sender
- send "&8⫸ &f/staff list &7- &oSee list of staff members." to command sender
- send "&8⫸ &f/staff clear &7- &oRemove all staff members." to command sender
- else if arg 1 is equal to "add":
- set {_arg2} to ("%arg 2%" parsed as offlineplayer)
- if arg 2 is not set:
- send "&a&lStaff &r&8⫸ &7Usage: /staff add <player>" to command sender
- stop trigger
- else if {Staff::%{_arg2}%} is set:
- send "&a&lStaff &r&8⫸ &7This player is already a staff member." to command sender
- stop trigger
- else:
- set {Staff::%{_arg2}%} to true
- send "&a&lStaff &r&8⫸ &6%{_arg2}% &7is now a staff member." to command sender
- else if arg 1 is equal to "remove":
- set {_arg2} to ("%arg 2%" parsed as offlineplayer)
- if arg 2 is not set:
- send "&a&lStaff &r&8⫸ &7Usage: /staff remove <player>" to command sender
- stop trigger
- else if {Staff::%{_arg2}%} is not set:
- send "&a&lStaff &r&8⫸ &7This player is not a staff member." to command sender
- stop trigger
- else:
- delete {Staff::%{_arg2}%}
- send "&a&lStaff &r&8⫸ &6%{_arg2}% &7was no longer a staff member." to command sender
- else if arg 1 is equal to "list":
- if {Staff::*} is not set:
- send "&a&lStaff &r&8⫸ &7There are no staff members." to command sender
- stop trigger
- else:
- loop {Staff::*}:
- set {_player} to ("%loop-index%" parsed as offlineplayer)
- if {_staff} is not set:
- set {_staff} to "&6%{_player}%"
- else:
- set {_staff} to "%{_staff}% &7- &6%{_player}%"
- send "&a&lStaff &r&8⫸ &7List: &c%{_staff}%" to command sender
- else if arg 1 is equal to "clear":
- if {Staff::*} is not set:
- send "&a&lStaff &r&8⫸ &7There are no staff members." to command sender
- stop trigger
- else:
- delete {Staff::*}
- send "&a&lStaff &r&8⫸ &7All the staff members was dismissed." to command sender
- else:
- make command sender execute command "/staff help"
- else:
- send "Unknown command." to command sender
- command /spec [<text>] [<text>]:
- trigger:
- set {_access} to false
- if {Staff::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if {UHCStart} is not true:
- if arg 1 is not set:
- make command sender execute command "/spec help"
- else if arg 1 is equal to "help":
- send "&a&lUHC &r&8⫸ &7Usage of /spec:" to command sender
- send "&8⫸ &f/spec add <player> &7- &oAdd spectator." to command sender
- send "&8⫸ &f/spec remove <player> &7- &oRemove a spectator." to command sender
- send "&8⫸ &f/spec list &7- &oSee list of spectators." to command sender
- send "&8⫸ &f/spec clear &7- &oRemove all spectators." to command sender
- else if arg 1 is equal to "add":
- set {_arg2} to ("%arg 2%" parsed as offlineplayer)
- if arg 2 is not set:
- send "&a&lSpec &r&8⫸ &7Usage: /spec add <player>" to command sender
- stop trigger
- else if {Spec::%{_arg2}%} is set:
- send "&a&lSpec &r&8⫸ &7This player is already spectator." to command sender
- stop trigger
- else:
- set {Spec::%{_arg2}%} to {_arg2}
- set {chatname::%{_arg2}%} to "&7%{_arg2}%"
- execute command "/ne clear %{_arg2}%"
- set {_NotEmpty} to false
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {_name} is not equal to {_arg2}:
- if {Team::%{_name}%} is equal to {Team::%{_arg2}%}:
- set {_NotEmpty} to true
- stop loop
- if {_NotEmpty} is false:
- loop all players:
- if loop-player is not {_arg2}:
- if {Team::%loop-player%} is equal to {Team::%{_arg2}%}:
- set {_NotEmpty} to true
- stop loop
- if {_NotEmpty} is false:
- if {Team::%player%} is equal to "UHC1":
- set {UHC1} to 0
- else if {Team::%player%} is equal to "UHC2":
- set {UHC2} to 0
- else if {Team::%player%} is equal to "UHC3":
- set {UHC3} to 0
- else if {Team::%player%} is equal to "UHC4":
- set {UHC4} to 0
- else if {Team::%player%} is equal to "UHC5":
- set {UHC5} to 0
- else if {Team::%player%} is equal to "UHC6":
- set {UHC6} to 0
- else if {Team::%player%} is equal to "UHC7":
- set {UHC7} to 0
- else if {Team::%player%} is equal to "UHC8":
- set {UHC8} to 0
- else if {Team::%player%} is equal to "UHC9":
- set {UHC9} to 0
- else if {Team::%player%} is equal to "UHC10":
- set {UHC10} to 0
- else if {Team::%player%} is equal to "UHC11":
- set {UHC11} to 0
- else if {Team::%player%} is equal to "UHC12":
- set {UHC12} to 0
- else if {Team::%player%} is equal to "UHC13":
- set {UHC13} to 0
- else if {Team::%player%} is equal to "UHC14":
- set {UHC14} to 0
- else if {Team::%player%} is equal to "UHC15":
- set {UHC15} to 0
- delete {Team::%{_arg2}%}
- send "&a&lSpec &r&8⫸ &6%{_arg2}% &7was now a spectator." to command sender
- else if arg 1 is equal to "remove":
- set {_arg2} to ("%arg 2%" parsed as offlineplayer)
- if arg 2 is not set:
- send "&a&lSpec &r&8⫸ &7Usage: /spec remove <player>" to command sender
- stop trigger
- else if {Spec::%{_arg2}%} is not set:
- send "&a&lSpec &r&8⫸ &7This player is not a spectator." to command sender
- stop trigger
- else:
- delete {Spec::%{_arg2}%}
- send "&a&lSpec &r&8⫸ &6%{_arg2}% &7was removed from spectators." to command sender
- else if arg 1 is equal to "list":
- if {Spec::*} is not set:
- send "&a&lSpec &r&8⫸ &7There are no spectators." to command sender
- stop trigger
- else:
- loop {Spec::*}:
- set {_player} to ("%loop-index%" parsed as offlineplayer)
- if {_spec} is not set:
- set {_spec} to "&6%{_player}%"
- else:
- set {_spec} to "%{_spec}% &7- &6%{_player}%"
- send "&a&lSpec &r&8⫸ &7List: &c%{_spec}%" to command sender
- else if arg 1 is equal to "clear":
- if {Spec::*} is not set:
- send "&a&lSpec &r&8⫸ &7There are no spectators." to command sender
- stop trigger
- else:
- delete {Spec::*}
- send "&a&lSpec &r&8⫸ &7All the spectators was removed." to command sender
- else:
- send "&a&lUHC &r&8⫸ &7The UHC has already begun" to command sender
- else:
- send "Unknown command." to command sender
- on server ping:
- set motd to {motd}
- set max player count to 70
- on connect:
- if {WHOpen} is false:
- if player is not an op:
- if {Staff::%player%} is not set:
- if {WH::%player%} is not set:
- if {UHCStart} is not true:
- if {programHour} is set:
- kick the player due to "&8⫸ &7You are not whitelisted &8⫷%nl% %nl%&cWhitelist OFF at %{programHour}%."
- else:
- kick the player due to "&8⫸ &7You are not whitelisted &8⫷%nl% %nl%&cNo scheduled UHC."
- else:
- kick the player due to "&8⫸ &7You are not whitelisted &8⫷%nl% %nl%&cThe UHC has already begun."
- command /open:
- trigger:
- set {_access} to false
- if {Host::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if {spawnsReady} is false:
- if {open} is false:
- if {programHour} is set:
- set {open} to true
- set {untilStart} to 10
- set {WHOpen} to true
- broadcast "&a&lUHC &r&8⫸ &7Whitelist is now open, the UHC start in 10 minutes."
- else:
- send "&a&lUHC &r&8⫸ &7There is no scheduled UHC, use /program." to command sender
- else:
- send "&a&lUHC &r&8⫸ &7The whitelist is already open"
- else:
- send "&a&lUHC &r&8⫸ &7The UHC has already begun" to command sender
- else:
- send "Unknown command." to command sender
- command /spawns [<text>]:
- trigger:
- set {_access} to false
- if {Host::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if {open} is true:
- if arg 1 is not set:
- set {spawnsStart} to true
- if {TeamsNumbers} is between 102 and 110:
- loop all players:
- if {Spec::%loop-player%} is not set:
- set {_RandEnd} to false
- while {_RandEnd} is false:
- set {_rand} to a random integer between 1 and {players}
- if {Rand::%{_rand}%} is not set:
- set {Rand::%{_rand}%} to "%loop-player%"
- set {_RandEnd} to true
- set {_TeamCount} to ({TeamsNumbers} - 100)
- loop {Rand::*}:
- set {_player} to ("%loop-value%" parsed as offlineplayer)
- if {Spec::%{_player}%} is not set:
- if {Team::%{_player}%} is not set:
- if {_TeamCount} is equal to ({TeamsNumbers} - 100):
- set {_TeamCount} to 1
- if {UHC1} is equal to 0:
- broadcast "New team UHC1"
- set {UHC1} to 1
- set {chatname::%{_player}%} to "&0%{_player}%"
- execute command "/ne prefix %{_player}% &0"
- set {Team::%{_player}%} to "UHC1"
- set {_Team} to "UHC1"
- else if {UHC2} is equal to 0:
- set {UHC2} to 1
- set {chatname::%{_player}%} to "&1%{_player}%"
- execute command "/ne prefix %{_player}% &1"
- set {Team::%{_player}%} to "UHC2"
- set {_Team} to "UHC2"
- else if {UHC3} is equal to 0:
- set {UHC3} to 1
- set {chatname::%{_player}%} to "&2%{_player}%"
- execute command "/ne prefix %{_player}% &2"
- set {Team::%{_player}%} to "UHC3"
- set {_Team} to "UHC3"
- else if {UHC4} is equal to 0:
- set {UHC4} to 1
- set {chatname::%{_player}%} to "&3%{_player}%"
- execute command "/ne prefix %{_player}% &3"
- set {Team::%{_player}%} to "UHC4"
- set {_Team} to "UHC4"
- else if {UHC5} is equal to 0:
- set {UHC5} to 1
- set {chatname::%{_player}%} to "&4%{_player}%"
- execute command "/ne prefix %{_player}% &4"
- set {Team::%{_player}%} to "UHC5"
- set {_Team} to "UHC5"
- else if {UHC6} is equal to 0:
- set {UHC6} to 1
- set {chatname::%{_player}%} to "&5%{_player}%"
- execute command "/ne prefix %{_player}% &5"
- set {Team::%{_player}%} to "UHC6"
- set {_Team} to "UHC6"
- else if {UHC7} is equal to 0:
- set {UHC7} to 1
- set {chatname::%{_player}%} to "&6%{_player}%"
- execute command "/ne prefix %{_player}% &6"
- set {Team::%{_player}%} to "UHC7"
- set {_Team} to "UHC7"
- else if {UHC8} is equal to 0:
- set {UHC8} to 1
- set {chatname::%{_player}%} to "&7%{_player}%"
- execute command "/ne prefix %{_player}% &7"
- set {Team::%{_player}%} to "UHC8"
- set {_Team} to "UHC8"
- else if {UHC9} is equal to 0:
- set {UHC9} to 1
- set {chatname::%{_player}%} to "&8%{_player}%"
- execute command "/ne prefix %{_player}% &8"
- set {Team::%{_player}%} to "UHC9"
- set {_Team} to "UHC9"
- else if {UHC10} is equal to 0:
- set {UHC10} to 1
- set {chatname::%{_player}%} to "&9%{_player}%"
- execute command "/ne prefix %{_player}% &9"
- set {Team::%{_player}%} to "UHC10"
- set {_Team} to "UHC10"
- else if {UHC11} is equal to 0:
- set {UHC11} to 1
- set {chatname::%{_player}%} to "&a%{_player}%"
- execute command "/ne prefix %{_player}% &a"
- set {Team::%{_player}%} to "UHC11"
- set {_Team} to "UHC11"
- else if {UHC12} is equal to 0:
- set {UHC12} to 1
- set {chatname::%{_player}%} to "&b%{_player}%"
- execute command "/ne prefix %{_player}% &b"
- set {Team::%{_player}%} to "UHC12"
- set {_Team} to "UHC12"
- else if {UHC13} is equal to 0:
- set {UHC13} to 1
- set {chatname::%{_player}%} to "&c%{_player}%"
- execute command "/ne prefix %{_player}% &c"
- set {Team::%{_player}%} to "UHC13"
- set {_Team} to "UHC13"
- else if {UHC14} is equal to 0:
- set {UHC14} to 1
- set {chatname::%{_player}%} to "&d%{_player}%"
- execute command "/ne prefix %{_player}% &d"
- set {Team::%{_player}%} to "UHC14"
- set {_Team} to "UHC14"
- else if {UHC15} is equal to 0:
- set {UHC15} to 1
- set {chatname::%{_player}%} to "&e%{_player}%"
- execute command "/ne prefix %{_player}% &e"
- set {Team::%{_player}%} to "UHC15"
- set {_Team} to "UHC15"
- else:
- if {_Team} is equal to "UHC1":
- broadcast "Join UHC1"
- set {chatname::%{_player}%} to "&0%{_player}%"
- execute command "/ne prefix %{_player}% &0"
- set {Team::%{_player}%} to "UHC1"
- else if {_Team} is equal to "UHC2":
- set {chatname::%{_player}%} to "&1%{_player}%"
- execute command "/ne prefix %{_player}% &1"
- set {Team::%{_player}%} to "UHC2"
- else if {_Team} is equal to "UHC3":
- set {chatname::%{_player}%} to "&2%{_player}%"
- execute command "/ne prefix %{_player}% &2"
- set {Team::%{_player}%} to "UHC3"
- else if {_Team} is equal to "UHC4":
- set {chatname::%{_player}%} to "&3%{_player}%"
- execute command "/ne prefix %{_player}% &3"
- set {Team::%{_player}%} to "UHC4"
- else if {_Team} is equal to "UHC5":
- set {chatname::%{_player}%} to "&4%{_player}%"
- execute command "/ne prefix %{_player}% &4"
- set {Team::%{_player}%} to "UHC5"
- else if {_Team} is equal to "UHC6":
- set {chatname::%{_player}%} to "&5%{_player}%"
- execute command "/ne prefix %{_player}% &5"
- set {Team::%{_player}%} to "UHC6"
- else if {_Team} is equal to "UHC7":
- set {chatname::%{_player}%} to "&6%{_player}%"
- execute command "/ne prefix %{_player}% &6"
- set {Team::%{_player}%} to "UHC7"
- else if {_Team} is equal to "UHC8":
- set {chatname::%{_player}%} to "&7%{_player}%"
- execute command "/ne prefix %{_player}% &7"
- set {Team::%{_player}%} to "UHC8"
- else if {_Team} is equal to "UHC9":
- set {chatname::%{_player}%} to "&8%{_player}%"
- execute command "/ne prefix %{_player}% &8"
- set {Team::%{_player}%} to "UHC9"
- else if {_Team} is equal to "UHC10":
- set {chatname::%{_player}%} to "&9%{_player}%"
- execute command "/ne prefix %{_player}% &9"
- set {Team::%{_player}%} to "UHC10"
- else if {_Team} is equal to "UHC11":
- set {chatname::%{_player}%} to "&a%{_player}%"
- execute command "/ne prefix %{_player}% &a"
- set {Team::%{_player}%} to "UHC11"
- else if {_Team} is equal to "UHC12":
- set {chatname::%{_player}%} to "&b%{_player}%"
- execute command "/ne prefix %{_player}% &b"
- set {Team::%{_player}%} to "UHC12"
- else if {_Team} is equal to "UHC13":
- set {chatname::%{_player}%} to "&c%{_player}%"
- execute command "/ne prefix %{_player}% &c"
- set {Team::%{_player}%} to "UHC13"
- else if {_Team} is equal to "UHC14":
- set {chatname::%{_player}%} to "&d%{_player}%"
- execute command "/ne prefix %{_player}% &d"
- set {Team::%{_player}%} to "UHC14"
- else if {_Team} is equal to "UHC15":
- set {chatname::%{_player}%} to "&e%{_player}%"
- execute command "/ne prefix %{_player}% &e"
- set {Team::%{_player}%} to "UHC15"
- add 1 to {_TeamCount}
- broadcast "&a&lTeam &r&8⫸ &7The teams was randomed."
- set {_border} to (({border} - ({border}/10))/2)
- set {_negBorder} to ({_border} - ({_border}*2))
- set {_minDistance} to 200
- set {_spawnpoints} to (((({_border}*2)/{_minDistance})*(({border}*2)/{_minDistance}))-3)
- set {_spawnpoints} to ("%{_spawnpoints}%" parsed as integer)
- set {_Count} to 0
- if {_spawnpoints} is smaller than {players}:
- send "&a&lUHC &r&8⫸ &7There are not enough spawn points." to command sender
- send "&a&lUHC &r&8⫸ &6%{_spawnpoints}%&7 spawn points available, &6%{players}% &7players connected." to command sender
- else:
- set {_players} to 0
- loop all players:
- set {_loopPlayers} to ("%loop-player%" parsed as offline player)
- if {Spec::%{_loopPlayers}%} is not set:
- add 1 to {_players}
- loop all players:
- set {_loopPlayers} to ("%loop-player%" parsed as offline player)
- if {Spec::%{_loopPlayers}%} is not set:
- set {_existSpawn} to false
- if {TeamsNumbers} is greater than 1:
- if {Team::%loop-player%} is set:
- loop all players:
- if {Spec::%loop-player-2%} is not set:
- if loop-player-2 is not equal to loop-player-1:
- if {Team::%loop-player-2%} is set:
- if {Team::%loop-player-2%} is equal to {Team::%loop-player-1%}:
- if {tplocation::%loop-player-2%} is set:
- set {tplocation::%loop-player-1%} to {tplocation::%loop-player-2%}
- set {_existSpawn} to true
- if {_existSpawn} is false:
- while {_location} is not set:
- set {_randomX} to a random integer between {_border} and {_negBorder}
- set {_randomZ} to a random integer between {_border} and {_negBorder}
- add 0.5 to {_randomX}
- add 0.5 to {_randomZ}
- set {_locationTop} to location ({_randomX}, 200, {_randomZ}) in world "world"
- set {_locationBottom} to location ({_randomX}, 0, {_randomZ}) in world "world"
- loop all blocks within {_locationBottom} to {_locationTop}:
- if loop-block is not air:
- set {_location} to location of loop-block
- if block at {_location} is water block:
- delete {_location}
- else if block at {_location} is lava block:
- delete {_location}
- else if the id of block at {_location} is 18:
- delete {_location}
- else if the id of block at {_location} is 161:
- delete {_location}
- loop {tplocation::*}:
- if distance between {_location} and {tplocation::%loop-index%} is smaller than {_minDistance}:
- delete {_location}
- if distance between {_location} and location (0, 200, 0) in the world "world" is smaller than 25:
- delete {_location}
- if {_location} is set:
- set {_location} to location (x coord of {_location}, 200, z coord of {_location}) in world "world"
- set {_location1} to location 2 meter north east of {_location}
- set {_location1} to location 1 meter down {_location1}
- set {_location2} to location 2 meter south west of {_location}
- set {_location2} to location 3 meter up {_location2}
- loop all blocks within {_location1} to {_location2}:
- set loop-block to barrier
- set {_location1} to location 1 meter north east of {_location}
- set {_location1} to location 1 meter down {_location1}
- set {_location2} to location 1 meter south west of {_location}
- set {_location2} to location 1 meter down {_location2}
- loop all blocks within {_location1} to {_location2}:
- set loop-block to dark green glass block
- set {_location1} to location 1 meter north east of {_location}
- set {_location2} to location 1 meter south west of {_location}
- set {_location2} to location 2 meter up {_location2}
- loop all blocks within {_location1} to {_location2}:
- set loop-block to air
- set {tplocation::%loop-player%} to {_location}
- delete {_location}
- add 1 to {_Count}
- set {_loopPlayer} to ("%loop-player%" parsed as offlineplayer)
- set {WH::%{_loopPlayer}%} to "%{_loopPlayer}%"
- loop all players:
- if {actionbarused::%loop-player-2%} is not set:
- set action bar of loop-player-2 to "&a%{_loopPlayer}% &cadded to whitelist &c(&a%{_Count}%&c/&a%{players}%&c)"
- wait 0.1 seconds
- set {spawnsReady} to true
- set {open} to false
- set {WHOpen} to false
- broadcast "&a&lUHC &r&8⫸ &7The whitelist is now closed."
- else if arg 1 is equal to "reset":
- delete {tplocation::*}
- broadcast "&a&lUHC &r&8⫸ &7All spawn points have been removed."
- else:
- send "&a&lUHC &r&8⫸ &7The whitelist is not open, use first /open." to command sender
- else:
- send "Unknown command." to command sender
- command /teleport:
- trigger:
- set {_access} to false
- if {Host::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if {spawnsReady} is set:
- if {spawnsReady} is true:
- set {UHCStart} to true
- wait 1 second
- set {_Count} to 0
- loop all players:
- if {Spec::%loop-player%} is not set:
- 1.8 spawn 10 of particle explode:0.1 offset by 0, 0, 0 at loop-player with data 0
- wait 1 tick
- teleport loop-player to {tplocation::%loop-player%}
- set {teleported::%loop-player%} to true
- add 1 to {_Count}
- loop all players:
- if {actionbarused::%loop-player-2%} is not set:
- set action bar of loop-player-2 to "&a%loop-player-1% &cwas teleported (&a%{_Count}%&c/&a%{players}%&c)"
- close inventory of loop-player
- delete {inviteConfirm::%loop-player%}
- set rf max health of loop-player to 20
- set health of loop-player to 10
- clear the inventory of loop-player
- set the level of loop-player to 0
- set the level progress of loop-player to 0
- wait 0.1 seconds
- broadcast "&a&lUHC &r&8⫸ &7All players was teleported."
- wait 1 tick
- set {allTeleported} to true
- else:
- send "&a&lUHC &r&8⫸ &7Spawn points were not generated, use &6/spawns&7." to command sender
- else:
- send "&a&lUHC &r&8⫸ &7Spawn points were not generated, use &6/spawns&7." to command sender
- else:
- send "Unknown command." to command sender
- command /start:
- trigger:
- set {_access} to false
- if {Host::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if {Start} is not true:
- if {allTeleported} is set:
- if {allTeleported} is true:
- loop all players in world "world":
- if {Spec::%loop-player%} is not set:
- send loop-player title "&45" with subtitle "&7Launching the UHC" for 1 seconds with 0 second fade in and 0 second fade out
- broadcast "&a&lUHC &r&8⫸ &7Launching the UHC in &45&7."
- wait 1 second
- loop all players in world "world":
- if {Spec::%loop-player%} is not set:
- send loop-player title "&c4" with subtitle "&7Launching the UHC" for 1 seconds with 0 second fade in and 0 second fade out
- broadcast "&a&lUHC &r&8⫸ &7Launching the UHC in &c4&7."
- wait 1 second
- loop all players in world "world":
- if {Spec::%loop-player%} is not set:
- send loop-player title "&63" with subtitle "&7Launching the UHC" for 1 seconds with 0 second fade in and 0 second fade out
- broadcast "&a&lUHC &r&8⫸ &7Launching the UHC in &63&7."
- wait 1 second
- loop all players in world "world":
- if {Spec::%loop-player%} is not set:
- send loop-player title "&e2" with subtitle "&7Launching the UHC" for 1 seconds with 0 second fade in and 0 second fade out
- broadcast "&a&lUHC &r&8⫸ &7Launching the UHC in &e2&7."
- wait 1 second
- loop all players in world "world":
- if {Spec::%loop-player%} is not set:
- send loop-player title "&a1" with subtitle "&7Launching the UHC" for 1 seconds with 0 second fade in and 0 second fade out
- broadcast "&a&lUHC &r&8⫸ &7Launching the UHC in &a1&7."
- wait 1 second
- loop all players in world "world":
- if {Spec::%loop-player%} is not set:
- send loop-player title "&aGo" with subtitle "&7Good luck!" for 1 seconds with 0 second fade in and 0 second fade out
- set the level of loop-player to 0
- set the level progress of loop-player to 0
- loop 100 times:
- broadcast " "
- broadcast "&8⫸ &l&m &r &8⫷"
- broadcast "&a&lUHC &r&8⫸ &7UHC was started !"
- broadcast "&a&lUHC &r&8⫸ &7PVP will be activated in: &a%{pvpTime}% minutes&7."
- broadcast "&a&lUHC &r&8⫸ &7Meetup is in: &a%{meetupTime}% minutes&7."
- broadcast "&8⫸ &l&m &r &8⫷"
- loop all players in world "world":
- set the saturation of loop-player to 20
- if {Spec::%loop-player%} is not set:
- if {starterfood::command} is set:
- if {starterfood::command} is equal to "cooked beef":
- set slot 8 of loop-player to {starterfood::number} of cooked beef
- else if {starterfood::command} is equal to "cooked porkchop":
- set slot 8 of loop-player to {starterfood::number} of cooked porkchop
- else if {starterfood::command} is equal to "cooked chicken":
- set slot 8 of loop-player to {starterfood::number} of cooked chicken
- else if {starterfood::command} is equal to "cooked rabbit":
- set slot 8 of loop-player to {starterfood::number} of cooked rabbit
- else if {starterfood::command} is equal to "cooked mutton":
- set slot 8 of loop-player to {starterfood::number} of cooked mutton
- set {invinc} to true
- if command sender is in world "lobby":
- set {_loc} to location of command sender
- teleport command sender to location (0, 100, 0) in world "world"
- if {eternalDay} is true:
- set the time to 12:00
- else:
- set the time to 6:00
- teleport command sender to {_loc}
- else:
- if {eternalDay} is true:
- set the time to 12:00
- else:
- set the time to 6:00
- loop {Spec::*}:
- set {_loopPlayers} to ("%loop-index%" parsed as offline player)
- set the gamemode of {_loopPlayers} to spectator
- set {secondsTime} to 0
- set {Start} to true
- execute command "/updatescoreboard"
- loop all blocks within location (10, 198, 10) in the world "world" to location (-10, 230, -10) in the world "world":
- set loop-block to air
- loop {tplocation::*}:
- set {_location1} to location 2 meter north east of {tplocation::%loop-index%}
- set {_location1} to location 1 meter down {_location1}
- set {_location2} to location 2 meter south west of {tplocation::%loop-index%}
- set {_location2} to location 3 meter up {_location2}
- loop all blocks within {_location1} to {_location2}:
- set loop-block to air
- set {_playerName} to ("%loop-index%" parsed as offlineplayer)
- set {_playerLocation} to location of {_playerName}
- set {_playerLocation} to location ({_playerLocation}, 200, {_playerLocation})
- 1.8 spawn 5 of particle HUGE_EXPLOSION:1 offset by 0, 0, 0 at {tplocation::%loop-index%} with data 0
- set {_timer} to 0
- loop all players:
- if {Spec::%loop-player%} is not set:
- set {onGround::%loop-player%} to true
- set {invinc} to true
- set {nodamage} to true
- set the gamemode of all players to survival
- while {_timer} is smaller than 30:
- set {_timeleft} to (30 - {_timer})
- loop all players:
- if loop-player is not in world "lobby":
- if {Spec::%loop-player%} is not set:
- if {actionbarused::%loop-player%} is not set:
- set action bar of loop-player to "&cDamage active in &a%{_timeleft}% &cseconds"
- add 1 to {_timer}
- wait 1 second
- loop all players:
- if {actionbarused::%loop-player%} is not set:
- set action bar of loop-player to ""
- if command sender is in world "lobby":
- set {_loc} to location of command sender
- teleport command sender to location (0, 100, 0) in world "world"
- make player execute command "/difficulty 3"
- teleport command sender to {_loc}
- else:
- make player execute command "/difficulty 3"
- set {nodamage} to false
- set {invinc} to false
- else:
- send "&a&lUHC &r&8⫸ &7Players was not teleported, use &6/teleport&7." to command sender
- else:
- send "&a&lUHC &r&8⫸ &7Players was not teleported, use &6/teleport&7.." to command sender
- else:
- send "&a&lUHC &r&8⫸ &7The UHC has already begun." to command sender
- else:
- send "Unknown command." to command sender
- command /about [<text>]:
- trigger:
- set {_player} to ("%arg 1%" parsed as offlineplayer)
- if {_player} is online:
- if {Spec::%{_player}%} is not set:
- if {TeamsNumbers} is greater than 1:
- set {_fourRows} to false
- if {TeamsNumbers} is between 2 and 10:
- if {TeamsNumbers} is between 2 and 6:
- open chest with 3 row named "&8⫸ About: &4%{_player}%" to player
- else if {TeamsNumbers} is between 7 and 10:
- open chest with 4 row named "&8⫸ About: &4%{_player}%" to player
- set {_fourRows} to true
- else:
- open chest with 3 row named "&8⫸ About: &4%{_player}%" to player
- else if {TeamsNumbers} is between 102 and 110:
- if {TeamsNumbers} is between 102 and 106:
- open chest with 3 row named "&8⫸ About: &4%{_player}%" to player
- else if {TeamsNumbers} is between 107 and 110:
- open chest with 4 row named "&8⫸ About: &4%{_player}%" to player
- set {_fourRows} to true
- else:
- open chest with 3 row named "&8⫸ About: &4%{_player}%" to player
- else:
- open chest with 3 row named "&8⫸ About: &4%{_player}%" to player
- else:
- open chest with 1 row named "&8⫸ About: &4%{_player}%" to player
- else:
- open chest with 1 row named "&8⫸ About: &4%{_player}%" to player
- wait 1 tick
- format slot 0 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 1 of player with skull of "%{_player}%" parsed as offlineplayer named "&8⫸ &6%{_player}% &8⫷" to be unstealable
- format slot 2 of player with gray stained glass pane named "&7{@name}" to be unstealable
- if {Spec::%{_player}%} is set:
- format slot 3 of player with compass named "&8⫸ &6%{_player}% &7was a spectator." to be unstealable
- format slot 4 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 5 of player with gray stained glass pane named "&7{@name}" to be unstealable
- if {Host::%{_player}%} is true:
- format slot 6 of player with shiny banner:1 named "&8⫸ &c%{_player}% &7is the Host." to be unstealable
- else if {_player} is op:
- format slot 6 of player with shiny banner:1 named "&8⫸ &c%{_player}% &7is the Admin." to be unstealable
- else if {Staff::%{_player}%} is true:
- format slot 6 of player with shiny banner:1 named "&8⫸ &c%{_player}% &7is a Staff member." to be unstealable
- else:
- format slot 6 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 7 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 8 of player with barrier named "&8⫸ &cClose" to close
- else:
- format slot 3 of player with golden apple item named "&8⫸ &7Health: &6%(health of {_player}) * 10%%%&7." to be unstealable
- format slot 4 of player with cooked beef named "&8⫸ &7Food: &6%food level of {_player}%&7." to be unstealable
- if {kills::%{_player}%} is set:
- format slot 5 of player with diamond sword named "&8⫸ &7Kills: &6%{kills::%{_player}%}%&7." to be unstealable
- else:
- format slot 5 of player with diamond sword named "&8⫸ &7Kills: &60&7." to be unstealable
- if {Host::%{_player}%} is true:
- format slot 6 of player with shiny banner:1 named "&8⫸ &c%{_player}% &7is the Host." to be unstealable
- else if {_player} is op:
- format slot 6 of player with shiny banner:1 named "&8⫸ &c%{_player}% &7is the Admin." to be unstealable
- else if {Staff::%{_player}%} is true:
- format slot 6 of player with shiny banner:1 named "&8⫸ &c%{_player}% &7is a Staff member." to be unstealable
- else:
- format slot 6 of player with gray stained glass pane named "&7{@name}" to be unstealable
- if {TeamsNumbers} is greater than 1:
- format slot 7 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 8 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 9 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 10 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 11 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 12 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 13 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 14 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 15 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 16 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 17 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 18 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 19 of player with shiny name tag named "&8⫸ &7Teammates &6»" to be unstealable
- format slot 20 of player with gray stained glass pane named "&7{@name}" to be unstealable
- set {_NbMembers} to 21
- if {UHCStart} is true:
- loop {WH::*}:
- if {Team::%loop-index%} is equal to {Team::%{_player}%}:
- set {_teammate} to ("%loop-index%" parsed as offlineplayer)
- if {_teammate} is not equal to {_player}:
- format slot {_NbMembers} of player with skull of "%{_teammate}%" parsed as offlineplayer named "&8⫸ &6%{_teammate}% &8⫷" to be unstealable
- add 1 to {_NbMembers}
- if {_fourRows} is true:
- if {_NbMembers} is equal to 26:
- format slot 26 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 27 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 28 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 29 of player with gray stained glass pane named "&7{@name}" to be unstealable
- set {_NbMembers} to 30
- else if {_NbMembers} is equal to 35:
- stop loop
- else:
- if {_NbMembers} is equal to 26:
- stop loop
- else:
- loop all players:
- if {Team::%loop-player%} is equal to {Team::%{_player}%}:
- set {_teammate} to loop-player
- if {_teammate} is not equal to {_player}:
- format slot {_NbMembers} of player with skull of "%{_teammate}%" parsed as offlineplayer named "&8⫸ &6%{_teammate}% &8⫷" to be unstealable
- add 1 to {_NbMembers}
- if {_fourRows} is true:
- if {_NbMembers} is equal to 26:
- format slot 26 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 27 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 28 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 29 of player with gray stained glass pane named "&7{@name}" to be unstealable
- set {_NbMembers} to 30
- else if {_NbMembers} is equal to 35:
- stop loop
- else:
- if {_NbMembers} is equal to 26:
- stop loop
- if {_fourRows} is true:
- if {_NbMembers} is equal to 21:
- format slot 21 of player with redstone dust named "&8⫸ &7No teammates." to be unstealable
- format slot 22 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 23 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 24 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 25 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 26 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 27 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 28 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 29 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 30 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 31 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 32 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 33 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 34 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 35 of player with barrier named "&8⫸ &cClose" to close
- else if {_NbMembers} is between 22 and 34:
- while {_NbMembers} is smaller than 35:
- format slot {_NbMembers} of player with gray stained glass pane named "&7{@name}" to be unstealable
- add 1 to {_NbMembers}
- format slot 35 of player with barrier named "&8⫸ &cClose" to close
- else:
- format slot 35 of player with barrier named "&8⫸ &cClose" to close
- else:
- if {_NbMembers} is equal to 21:
- format slot 21 of player with redstone dust named "&8⫸ &7No teammates." to be unstealable
- format slot 22 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 23 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 24 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 25 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 26 of player with barrier named "&8⫸ &cClose" to close
- else if {_NbMembers} is between 22 and 25:
- while {_NbMembers} is smaller than 26:
- format slot {_NbMembers} of player with gray stained glass pane named "&7{@name}" to be unstealable
- add 1 to {_NbMembers}
- format slot 26 of player with barrier named "&8⫸ &cClose" to close
- else:
- format slot 26 of player with barrier named "&8⫸ &cClose" to close
- else:
- format slot 7 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 8 of player with barrier named "&8⫸ &cClose" to close
- else:
- send "&a&lUHC &8⫸ &7This player is not online."
- on any move:
- if {UHCStart} is true:
- if {Start} is not true:
- if {teleported::%player%} is true:
- if distance between player and {tplocation::%player%} is more than 2.5:
- if {Spec::%player%} is not set:
- teleport player to {tplocation::%player%}
- on block damage:
- if player is in world "lobby":
- #if {Staff::%player%} is not set:
- cancel event
- else if {Start} is not true:
- set {_access} to false
- if {Host::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is false:
- cancel event
- on block mine:
- if player is in world "lobby":
- #if {Staff::%player%} is not set:
- cancel event
- else if {Start} is not true:
- set {_access} to false
- if {Host::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is false:
- cancel event
- on health regen:
- if {Start} is true:
- if event-entity is a player:
- if player is not in world "lobby":
- if regen reason is SATIATED:
- cancel event
- on chat:
- cancel event
- if {mute::%player%} is not set:
- if {Host::%player%} is true:
- if {chatname::%player%} is set:
- broadcast "&cHost&8 | &r%{chatname::%player%}% &r&8⫸ &f%message%"
- else:
- broadcast "&cHost&8 | &r&7%player% &r&8⫸ &f%message%"
- else if player is op:
- if {chatname::%player%} is set:
- broadcast "&4Admin&8 | &r%{chatname::%player%}% &r&8⫸ &f%message%"
- else:
- broadcast "&4Admin&8 | &r&7%player% &r&8⫸ &f%message%"
- else if {Staff::%player%} is true:
- if {chatname::%player%} is set:
- broadcast "&cStaff&8 | &r%{chatname::%player%}% &r&8⫸ &f%message%"
- else:
- broadcast "&cStaff&8 | &r&7%player% &r&8⫸ &f%message%"
- else:
- if {chat} is true:
- if {chatname::%player%} is set:
- broadcast "%{chatname::%player%}% &r&8⫸ &f%message%"
- else:
- broadcast "&7%player% &r&8⫸ &f%message%"
- on portal create:
- if {nether} is equal to "OFF":
- cancel event
- on death of player:
- if {Start} is true:
- if {Spec::%player%} is not set:
- if victim is not in world "lobby":
- if the gamemode of player is survival:
- set {_deathmessage} to death message
- set death message to ""
- set the block at location of victim to chest
- set {_chest} to block at location of victim
- set {_chestloc} to location of victim
- add 1 human head to {_chest}
- if {Sc::goldenretriever} is true:
- add 1 golden apple item to {_chest}
- if {Sc::barebones} is true:
- add 1 golden apple item to {_chest}
- add 1 diamond to {_chest}
- add 32 arrow to {_chest}
- add 2 string to {_chest}
- set block at {_chestloc} to air
- wait 1 second
- force respawn victim
- broadcast "&a&lUHC &r&8⫸ &c%{_deathmessage}% !"
- broadcast "&a&lUHC &r&8⫸ &6%({players} - 1)% players alive."
- if attacker is set:
- if attacker is a offlineplayer:
- if {kills::%attacker%} is not set:
- set {kills::%attacker%} to 1
- else:
- add 1 to {kills::%attacker%}
- else:
- add 1 to {pve}
- else:
- add 1 to {pve}
- execute command "/updatescoreboard"
- if player is op:
- set the gamemode of player to spectator
- set {Spec::%player%} to "%player%"
- teleport player to location (0, 100, 0) in world "world"
- else if {Host::%player%} is set:
- set the gamemode of player to spectator
- set {Spec::%player%} to "%player%"
- teleport player to location (0, 100, 0) in world "world"
- else if {Staff::%player%} is set:
- set the gamemode of player to spectator
- set {Spec::%player%} to "%player%"
- teleport player to location (0, 100, 0) in world "world"
- else:
- set {death::%player%} to true
- set slot 4 of player to shiny paper named "&b&lThe Rules &r&7(Right-Click)" with lore "&fClick to see the rules."
- if {TeamsStatus} is true:
- set slot 8 of player to 1 of shiny name tag named "&6&lThe Teams &r&7(Right-Click)" with lore "&fClick to see the teams."
- else:
- set slot 8 of player to air
- set the player's gamemode to adventure
- set the saturation of player to 20
- set the food level of player to 20
- teleport player to location (0.5, 102.5, 0.5) in the world "lobby"
- delete {leave::%player%}
- if {Team::%player%} is set:
- set {chatname::%player%} to "&7%name of player%"
- execute command "/ne clear %player%"
- set {_NotEmpty} to false
- loop {WH::*}:
- set {_name} to ("%loop-index%" parsed as offlineplayer)
- if {_name} is not command sender:
- if {Team::%{_name}%} is equal to {Team::%player%}:
- set {_NotEmpty} to true
- stop loop
- if {_NotEmpty} is false:
- if {Team::%player%} is equal to "UHC1":
- set {UHC1} to 0
- else if {Team::%player%} is equal to "UHC2":
- set {UHC2} to 0
- else if {Team::%player%} is equal to "UHC3":
- set {UHC3} to 0
- else if {Team::%player%} is equal to "UHC4":
- set {UHC4} to 0
- else if {Team::%player%} is equal to "UHC5":
- set {UHC5} to 0
- else if {Team::%player%} is equal to "UHC6":
- set {UHC6} to 0
- else if {Team::%player%} is equal to "UHC7":
- set {UHC7} to 0
- else if {Team::%player%} is equal to "UHC8":
- set {UHC8} to 0
- else if {Team::%player%} is equal to "UHC9":
- set {UHC9} to 0
- else if {Team::%player%} is equal to "UHC10":
- set {UHC10} to 0
- else if {Team::%player%} is equal to "UHC11":
- set {UHC11} to 0
- else if {Team::%player%} is equal to "UHC12":
- set {UHC12} to 0
- else if {Team::%player%} is equal to "UHC13":
- set {UHC13} to 0
- else if {Team::%player%} is equal to "UHC14":
- set {UHC14} to 0
- else if {Team::%player%} is equal to "UHC15":
- set {UHC15} to 0
- delete {Team::%player%}
- else:
- force respawn victim
- set slot 4 of player to shiny paper named "&b&lThe Rules &r&7(Right-Click)" with lore "&fClick to see the rules."
- if {TeamsStatus} is true:
- set slot 8 of player to 1 of shiny name tag named "&6&lThe Teams &r&7(Right-Click)" with lore "&fClick to see the teams."
- else:
- set slot 8 of player to air
- set the player's gamemode to adventure
- set the saturation of player to 20
- set the food level of player to 20
- teleport player to location (0.5, 102.5, 0.5) in the world "lobby"
- else:
- force respawn victim
- set slot 4 of player to shiny paper named "&b&lThe Rules &r&7(Right-Click)" with lore "&fClick to see the rules."
- if {TeamsStatus} is true:
- set slot 8 of player to 1 of shiny name tag named "&6&lThe Teams &r&7(Right-Click)" with lore "&fClick to see the teams."
- else:
- set slot 8 of player to air
- set the player's gamemode to adventure
- set the saturation of player to 20
- set the food level of player to 20
- teleport player to location (0.5, 102.5, 0.5) in the world "lobby"
- on inventory close:
- if {invOpen::%player%} is set:
- delete {invOpen::%player%}
- if player is in world "lobby":
- if {TeamsStatus} is true:
- if {inviteConfirm::%player%} is true:
- delete {inviteConfirm::%player%}
- if the gamemode of player is adventure:
- if {UHCStart} is true:
- if {Start} is true:
- wait 1 ticks
- set slot 0 of player to air
- set slot 1 of player to air
- set slot 2 of player to air
- set slot 3 of player to air
- if slot 4 of player is not equal to 1 of paper:
- set slot 4 of player to shiny paper named "&b&lThe Rules &r&7(Right-Click)" with lore "&fClick to see the rules."
- set slot 5 of player to air
- set slot 6 of player to air
- set slot 7 of player to air
- if {TeamsStatus} is true:
- if slot 8 of player is not equal to 1 of name tag:
- set slot 8 of player to 1 of shiny name tag named "&6&lThe Teams &r&7(Right-Click)" with lore "&fClick to see the teams."
- else:
- wait 1 ticks
- set slot 0 of player to air
- set slot 1 of player to air
- set slot 2 of player to air
- set slot 3 of player to air
- if slot 4 of player is not equal to 1 of paper:
- set slot 4 of player to shiny paper named "&b&lThe Rules &r&7(Right-Click)" with lore "&fClick to see the rules."
- set slot 5 of player to air
- set slot 6 of player to air
- set slot 7 of player to air
- if {TeamsStatus} is true:
- if slot 8 of player is not equal to 1 of name tag:
- set slot 8 of player to 1 of shiny name tag named "&6&lThe Teams &r&7(Right-Click)" with lore "&fClick to see the teams."
- on prepare item craft:
- if player is in world "lobby":
- set slot 0 of player to air
- set slot 1 of player to air
- set slot 2 of player to air
- set slot 3 of player to air
- if slot 4 of player is equal to air:
- set slot 4 of player to shiny paper named "&b&lThe Rules &r&7(Right-Click)" with lore "&fClick to see the rules."
- set slot 5 of player to air
- set slot 6 of player to air
- set slot 7 of player to air
- if {TeamsStatus} is true:
- if slot 8 of player is equal to air:
- set slot 8 of player to 1 of shiny name tag named "&6&lThe Teams &r&7(Right-Click)" with lore "&fClick to see the teams."
- on mine of gravel:
- if {cutclean} is equal to "ON":
- set the block at the block to chest
- set {_chest} to block
- set {_chestloc} to location of block
- add 1 flint to {_chest}
- set block at {_chestloc} to air
- on mine of iron ore:
- if {cutclean} is equal to "ON":
- set the block at the block to chest
- set {_chest} to block
- set {_chestloc} to location of block
- add 1 iron ingot to {_chest}
- set block at {_chestloc} to air
- spawn 1 experience orb at the block
- on mine of gold ore:
- if {Sc::barebones} is true:
- set the block at the block to chest
- set {_chest} to block
- set {_chestloc} to location of block
- add 1 iron ingot to {_chest}
- set block at {_chestloc} to air
- spawn 1 experience orb at the block
- else if {cutclean} is equal to "ON":
- set the block at the block to chest
- set {_chest} to block
- set {_chestloc} to location of block
- add 1 gold ingot to {_chest}
- set block at {_chestloc} to air
- spawn 1 experience orb at the block
- on mine of lapis ore:
- if {Sc::barebones} is true:
- set the block at the block to chest
- set {_chest} to block
- set {_chestloc} to location of block
- add 1 iron ingot to {_chest}
- set block at {_chestloc} to air
- spawn 1 experience orb at the block
- on mine of diamond ore:
- if {Sc::barebones} is true:
- set the block at the block to chest
- set {_chest} to block
- set {_chestloc} to location of block
- add 1 iron ingot to {_chest}
- set block at {_chestloc} to air
- spawn 1 experience orb at the block
- on mine of redstone ore:
- if {Sc::barebones} is true:
- set the block at the block to chest
- set {_chest} to block
- set {_chestloc} to location of block
- add 1 iron ingot to {_chest}
- set block at {_chestloc} to air
- spawn 1 experience orb at the block
- on mine of emerald ore:
- if {Sc::barebones} is true:
- set the block at the block to chest
- set {_chest} to block
- set {_chestloc} to location of block
- add 1 iron ingot to {_chest}
- set block at {_chestloc} to air
- spawn 1 experience orb at the block
- on break of sand:
- if {cutclean} is equal to "ON":
- set the block at the block to chest
- set {_chest} to block
- set {_chestloc} to location of block
- add 1 plain glass block to {_chest}
- set block at {_chestloc} to air
- on item spawn of raw rabbit:
- if {cutclean} is equal to "ON":
- cancel event
- set {_location} to the location 1 meter up event-location
- drop cooked rabbit at {_location}
- on item spawn of raw porkchop:
- if {cutclean} is equal to "ON":
- cancel event
- set {_location} to the location 1 meter up event-location
- drop cooked porkchop at {_location}
- on item spawn of raw beef:
- if {cutclean} is equal to "ON":
- cancel event
- set {_location} to the location 1 meter up event-location
- drop cooked beef at {_location}
- on item spawn of raw chicken:
- if {cutclean} is equal to "ON":
- cancel event
- set {_location} to the location 1 meter up event-location
- drop cooked chicken at {_location}
- on item spawn of raw mutton:
- if {cutclean} is equal to "ON":
- cancel event
- set {_location} to the location 1 meter up event-location
- drop cooked mutton at {_location}
- on eat of golden apple:
- if name of tool is "&6Golden Head":
- cancel the event
- remove 1 golden apple from the player's tool
- apply regeneration 2 to the player for 10 seconds
- apply absorption 1 to the player for 2 minutes
- on craft glistering melon:
- if the name of item is equal to "&6Glistering Melon":
- if {potions2} is "OFF":
- send "&a&lUHC &r&8⫸ &7Rappel: Les Potions II sont désactivées."
- else:
- cancel event
- send "&&a&lUHC &r&8⫸ &7Craftez le melon scintillant avec des lingots." to player
- on craft enchantment table:
- if {Sc::barebones} is true:
- cancel event
- send "&a&lUHC &r&8⫸ &7The barebones scenarios is enable, you cannot craft enchanting table." to player
- on craft anvil:
- if {Sc::barebones} is true:
- cancel event
- send "&a&lUHC &r&8⫸ &7The barebones scenarios is enable, you cannot craft anvil." to player
- on craft golden apple item:
- if {Sc::barebones} is true:
- cancel event
- send "&a&lUHC &r&8⫸ &7The barebones scenarios is enable, you cannot craft golden applr." to player
- on mine glowstone block:
- if {potions2} is "OFF":
- cancel event
- set the block at the block to chest
- set {_chest} to block
- set {_chestloc} to location of block
- add 1 glowstone block to {_chest}
- set block at {_chestloc} to air
- on death of a witch:
- if {potions2} is "OFF":
- remove all glowstone from the drops
- command /program [<text>]:
- trigger:
- set {_access} to false
- if {Staff::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if arg 1 is not set:
- send "&a&lUHC &8⫸ &7Please indicate the time in the format &r&600h00&7." to command sender
- else if arg 1 is equal to "reset":
- delete {programHour}
- send "&a&lUHC &8⫸ &7The scheduled UHC was canceled." to command sender
- else if the length of arg 1 is equal to 5:
- set {programHour} to arg 1
- send "&a&lUHC &8⫸ &7The time of the next UHC is &6%{programHour}%&7." to command sender
- else:
- send "&a&lUHC &8⫸ &7Please indicate the time in the format &r&600h00&7." to command sender
- else:
- send "Unknown command." to command sender
- command /updatescoreboard:
- executable by: console
- trigger:
- loop all players:
- delete loop-player's sidebar
- if {Host} is set:
- set name of sidebar of loop-player to "&a&oUHC &r&8⫸ &7&o%{Host}%"
- else:
- set name of sidebar of loop-player to "&a&oUHC &r&8⫸ &7&o{@serverName}"
- if {Start} is true:
- if PvP is enabled in world "world":
- loop {kills::*}:
- set {_player} to ("%loop-index%" parsed as offlineplayer)
- if {kills-name::%{_player}%} is not set:
- if {chatname::%{_player}%} is set:
- set {kills-name::%{_player}%} to "%{chatname::%{_player}%}%"
- else:
- set {kills-name::%{_player}%} to "&7%{_player}%"
- set score " &8⫸ %{kills-name::%{_player}%}%" in sidebar of loop-player to loop-value-2
- set score " " in sidebar of loop-player to 99
- set score " &8⫸ &6&lPVE" in sidebar of loop-player to {pve}
- else:
- set score " " in sidebar of loop-player to ({pve} + 1)
- set score " &6PVE &r&8⫸ &a&l%{pve}%" in sidebar of loop-player to {pve}
- set score " " in sidebar of loop-player to -1
- set score " &6Teams &8⫸ &7%{TeamsNumbersName}%" in sidebar of loop-player to -2
- set score " " in sidebar of loop-player to -3
- set score " &6Scenarios" in sidebar of loop-player to -4
- set {_Score} to -5
- loop {Sc::*}:
- if {Sc::%loop-index%} is true:
- set score " &8⫸ &7%{Sc::%loop-index%::name}%" in sidebar of loop-player to {_Score}
- subtract 1 from {_Score}
- if {_Score} is equal to -5:
- set score " &8⫸ &7Vanilla+" in sidebar of loop-player to {_Score}
- subtract 1 from {_Score}
- set score " " in sidebar of loop-player to {_Score}
- subtract 1 from {_Score}
- set score "&b{@twitter}" in sidebar of loop-player to {_Score}
- subtract 1 from {_Score}
- else:
- set score "&b{@twitter}" in sidebar of loop-player to 0
- set score " " in sidebar of loop-player to 1
- set score " &8⫸ &7/helpop" in sidebar of loop-player to 2
- set score " &8⫸ &7/rules" in sidebar of loop-player to 2
- set score " &6Help" in sidebar of loop-player to 3
- set score " " in sidebar of loop-player to 4
- set {_Score} to 5
- loop {Sc::*}:
- if {Sc::%loop-index%} is true:
- set score " &8⫸ &7%{Sc::%loop-index%::name}%" in sidebar of loop-player to {_Score}
- add 1 to {_Score}
- if {_Score} is equal to 5:
- set score " &8⫸ &7Vanilla+" in sidebar of loop-player to {_Score}
- add 1 to {_Score}
- set score " &6Scenarios" in sidebar of loop-player to {_Score}
- add 1 to {_Score}
- set score " " in sidebar of loop-player to {_Score}
- add 1 to {_Score}
- set score " &6Teams &8⫸ &7%{TeamsNumbersName}%" in sidebar of loop-player to {_Score}
- add 1 to {_Score}
- set score " " in sidebar of loop-player to {_Score}
- add 1 to {_Score}
- command /scenarios [<text>]:
- aliases: sc, scenario, scen
- trigger:
- set {_access} to false
- if {Host::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if {UHCStart} is not true:
- if arg 1 is not set:
- open chest with 3 row named "&8⫸ &4Scénarios" to player
- wait 1 tick
- if {Sc::goldenretriever} is true:
- format slot 0 of player with enchanted golden apple named "&8⫸ &7Golden Retriever: &aON" with lore "&6Leave a golden apple to the ground||&6when a player dies." to run [make player execute command "/scenarios goldenretriever"]
- else:
- format slot 0 of player with golden apple item named "&8⫸ &7Golden Retriever: &cOFF" with lore "&6Leave a golden apple to the ground||&6when a player dies." to run [make player execute command "/scenarios goldenretriever"]
- if {Sc::barebones} is true:
- format slot 1 of player with shiny iron block named "&8⫸ &7Barebones: &aON" with lore "&6The Nether is disabled, and iron is the highest tier||&6you can obtain through gearing up. When a player||&6dies, they will drop 1 diamond, 1 golden apple,||&632 arrows, and 2 string.You cannot craft an enchantment||&6table, anvil, or golden apple. Mining any ore except coal||&6or iron will drop an iron ingot." to run [make player execute command "/scenarios barebones"]
- else:
- format slot 1 of player with iron block named "&8⫸ &7Barebones: &cOFF" with lore "&6The Nether is disabled, and iron is the highest tier||&6you can obtain through gearing up. When a player||&6dies, they will drop 1 diamond, 1 golden apple,||&632 arrows, and 2 string.You cannot craft an enchantment||&6table, anvil, or golden apple. Mining any ore except coal||&6or iron will drop an iron ingot." to run [make player execute command "/scenarios barebones"]
- if {Sc::rush} is true:
- format slot 2 of player with shiny clock named "&8⫸ &7Rush: &aON" with lore "&6Only for appearance." to run [make player execute command "/scenarios rush"]
- else:
- format slot 2 of player with clock named "&8⫸ &7Rush: &cOFF" with lore "&6Only for appearance." to run [make player execute command "/scenarios rush"]
- else:
- if arg 1 is equal to "goldenretriever":
- if {Sc::goldenretriever} is true:
- set {Sc::goldenretriever} to false
- execute command "/updatescoreboard"
- make player execute command "/scenarios"
- else:
- set {Sc::goldenretriever} to true
- execute command "/updatescoreboard"
- make player execute command "/scenarios"
- else if arg 1 is equal to "barebones":
- if {Sc::barebones} is true:
- set {Sc::barebones} to false
- execute command "/updatescoreboard"
- make player execute command "/scenarios"
- else:
- set {Sc::barebones} to true
- execute command "/updatescoreboard"
- make player execute command "/scenarios"
- else if arg 1 is equal to "rush":
- if {Sc::rush} is true:
- set {Sc::rush} to false
- execute command "/updatescoreboard"
- make player execute command "/scenarios"
- else:
- set {Sc::rush} to true
- execute command "/updatescoreboard"
- make player execute command "/scenarios"
- else:
- open chest with 1 row named "&8⫸ &4Scénarios" to player
- wait 1 tick
- command /tell [<text>] [<text>]:
- aliases: msg, w
- trigger:
- if {msg} is true:
- if arg 1 is not set:
- send "&a&lUHC &8⫸ &7Usage: /msg <player> <message>"
- else if arg 2 is not set:
- make command sender execute command "/msg"
- else:
- set {_player} to ("%arg 1%" parsed as offlineplayer)
- if {_player} is online:
- if {_player} is command sender:
- send "&a&lUHC &8⫸ &7You can not send messages to yourself." to command sender
- else:
- send "&6Private&8 | &r%{chatname::%{_player}%}% &r&c⫷ &7%arg 2%" to command sender
- send "&6Private&8 | &r%{chatname::%player%}% &r&a⫸ &7%arg 2%" to {_player}
- set {lastmsg::%{_player}%} to "%command sender%"
- else:
- send "&a&lUHC &8⫸ &7That player is not online." to command sender
- else:
- send "&a&lUHC &8⫸ &7Private messages are disabled."
- command /r [<text>]:
- trigger:
- if {msg} is true:
- if arg 1 is set:
- if {lastmsg::%command sender%} is set:
- set {_player} to ("%{lastmsg::%command sender%}%" parsed as offlineplayer)
- send "&6Private&8 | &r%{chatname::%{_player}%}% &r&c⫷ &7%arg 1%" to command sender
- send "&6Private&8 | &r%{chatname::%player%}% &r&a⫸ &7%arg 1%" to {_player}
- set {lastmsg::%{_player}%} to "%command sender%"
- else:
- send "&a&lUHC &8⫸ &7You do not receive any message you can answer."
- else:
- send "&a&lUHC &8⫸ &7Usage: /r <message>"
- else:
- send "&a&lUHC &8⫸ &7Private messages are disabled."
- command /lobby:
- trigger:
- set {_access} to false
- if {Staff::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if player is not in "lobby":
- set slot 4 of player to shiny paper named "&b&lThe Rules &r&7(Right-Click)" with lore "&fClick to see the rules."
- if {TeamsStatus} is true:
- set slot 8 of player to 1 of shiny name tag named "&6&lThe Teams &r&7(Right-Click)" with lore "&fClick to see the teams."
- else:
- set slot 8 of player to air
- set the player's gamemode to adventure
- set the saturation of player to 20
- set the food level of player to 20
- teleport player to location (0.5, 102.5, 0.5) in the world "lobby"
- else:
- if {Spec::%player%} is set:
- set the gamemode of player to spectator
- set {Spec::%player%} to "%player%"
- teleport player to location (0, 100, 0) in world "world"
- else:
- send "&a&lUHC &8⫸ &7You are playing."
- else:
- send "Unknown command." to command sender
- command /jump [<text>]:
- trigger:
- set {_access} to false
- if {Staff::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if arg 1 is not set:
- if player is in "lobby":
- open chest with 1 rows named "&8⫸ &4Jump" to player
- wait 1 tick
- format slot 0 of player with shiny golden pressure plate named "&6Start" with lore "&fReceive a pressure plate||&fof start of jump." to run [give a golden pressure plate named "&6Start" to player]
- format slot 1 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 2 of player with shiny golden pressure plate named "&6Checkpoint" with lore "&fReceive a pressure plate||&fof checkpoint of jump." to run [give a golden pressure plate named "&6Checkpoint" to player]
- format slot 3 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 4 of player with shiny golden pressure plate named "&6End" with lore "&fReceive a pressure plate||&fof end of jump." to run [give a golden pressure plate named "&6End" to player]
- format slot 5 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 6 of player with redstone dust named "&cReset" to close then run [make player execute command "/jump reset"]
- format slot 7 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 8 of player with barrier named "&8⫸ &cClose" to close
- else:
- send "&a&lJump &r&8⫸ &7You can only place jump in the lobby." to command sender
- else if arg 1 is equal to "reset":
- set block at {jump::start} to air
- delete holo object "start"
- delete {jump::start}
- set block at {jump::end} to air
- delete holo object "end"
- delete {jump::end}
- loop {jump.cp::*}:
- set block at {jump.cp::%loop-index%} to air
- delete holo object "cp%loop-index%"
- delete {jump.cp::*}
- delete {cp}
- else:
- send "Commande inconnue." to command sender
- on place of golden pressure plate:
- if name of the tool of player is "&6Start":
- set {_access} to false
- if {Staff::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if {jump::start} is set:
- set block at {jump::start} to air
- delete holo object "start"
- set {jump::start} to location of event-block
- create holo object "&6Start" with id "start" at location 0.5 meter over event-block
- else:
- cancel event
- else if name of the tool of player is "&6End":
- set {_access} to false
- if {Staff::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if {jump::end} is set:
- set block at {jump::end} to air
- delete holo object "end"
- set {jump::end} to location of event-block
- create holo object "&6End" with id "end" at location 0.5 meter over event-block
- else:
- cancel event
- else if name of the tool of player is "&6Checkpoint":
- set {_access} to false
- if {Staff::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if {cp} is not set:
- set {jump.cp::1} to location of event-block
- create holo object "&6Checkpoint 1" with id "cp1" at location 0.5 meter over event-block
- set {cp} to 2
- else:
- set {jump.cp::%{cp}%} to location of event-block
- create holo object "&6Checkpoint %{cp}%" with id "cp%{cp}%" at location 0.5 meter over event-block
- add 1 to {cp}
- else:
- cancel event
- on break of golden pressure plate:
- if {jump::start} is equal to location of event-block:
- set {_access} to false
- if {Staff::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if {jump::start} is set:
- delete holo object "start"
- delete {jump::start}
- else:
- cancel event
- if {jump::end} is equal to location of event-block:
- set {_access} to false
- if {Staff::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if {jump::end} is set:
- delete {jump::end}
- delete holo object "end"
- else:
- cancel event
- else:
- loop {jump.cp::*}:
- if {jump.cp::%loop-index%} is equal to location of event-block:
- set {_cp} to loop-index
- stop loop
- if {_cp} is set:
- set {_access} to false
- if {Staff::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- loop {jump.cp::*}:
- set {_1} to ("%loop-index%" parsed as integer)
- set {_2} to (("%{_cp}%" parsed as integer) - 1)
- if ("%loop-index%" parsed as integer) is greater than (("%{_cp}%" parsed as integer) - 1):
- set block at {jump.cp::%loop-index%} to air
- delete holo object "cp%loop-index%"
- delete {jump.cp::%loop-index%}
- set {cp} to ("%{_cp}%" parsed as integer)
- else:
- cancel event
- on stepping on a pressure plate:
- if player is in world "lobby":
- if event-location is equal to {jump::start}:
- if {jump-user::%player%} is not set:
- set {jump-user::%player%} to 0
- send "&a&lJump &r&8⫸ &7You begin the jump." to player
- send "&a&lJump &r&8⫸ &7You can use &6/leave &7to leave the jump." to player
- else if event-location is equal to {jump::end}:
- teleport player to location (0, 102, 0) in world "lobby"
- delete {jump-user::%player%}
- send "&a&lJump &r&8⫸ &7Congratulations you have finished the jump !" to player
- else:
- loop {jump.cp::*}:
- if {jump.cp::%loop-index%} is equal to event-location:
- if {jump-user::%player%} is set:
- if ("%loop-index%" parsed as integer) is equal to ({jump-user::%player%} + 1):
- set {jump-user::%player%} to ("%loop-index%" parsed as integer)
- send "&a&lJump &r&8⫸ &7You have activated the &6Checkpoint %loop-index%&7." to player
- stop loop
- command /leave:
- trigger:
- if player is in world "lobby":
- if {jump-user::%player%} is set:
- teleport player to location (0, 102, 0) in world "lobby"
- delete {jump-user::%player%}
- send "&a&lJump &r&8⫸ &7You have left the jump." to player
- else:
- send "&a&lJump &r&8⫸ &7You did not start the jump." to player
- else:
- send "Unknown command." to command sender
- command /inv [<text>]:
- trigger:
- set {_access} to false
- if {Staff::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if {Spec::%player%} is set:
- send "&a&lUHC &r&8⫸ &7La triche, c'est mal." to player
- else:
- if arg 1 is not set:
- send "&a&lUHC &r&8⫸ &7Usage: /inv <player>." to player
- else:
- set {_player} to ("%arg 1%" parsed as offlineplayer)
- if {_player} is online:
- if command sender is op:
- open the inventory of {_player} to the player
- else:
- close inventory of {_player}
- open chest with 5 rows named "&8⫸ Inv: &4%{_player}%" to player
- wait 1 tick
- format slot 0 of player with slot 9 of {_player} to be unstealable
- format slot 1 of player with slot 10 of {_player} to be unstealable
- format slot 2 of player with slot 11 of {_player} to be unstealable
- format slot 3 of player with slot 12 of {_player} to be unstealable
- format slot 4 of player with slot 13 of {_player} to be unstealable
- format slot 5 of player with slot 14 of {_player} to be unstealable
- format slot 6 of player with slot 15 of {_player} to be unstealable
- format slot 7 of player with slot 16 of {_player} to be unstealable
- format slot 8 of player with slot 17 of {_player} to be unstealable
- format slot 9 of player with slot 18 of {_player} to be unstealable
- format slot 10 of player with slot 19 of {_player} to be unstealable
- format slot 11 of player with slot 20 of {_player} to be unstealable
- format slot 12 of player with slot 21 of {_player} to be unstealable
- format slot 13 of player with slot 22 of {_player} to be unstealable
- format slot 14 of player with slot 23 of {_player} to be unstealable
- format slot 15 of player with slot 24 of {_player} to be unstealable
- format slot 16 of player with slot 25 of {_player} to be unstealable
- format slot 17 of player with slot 26 of {_player} to be unstealable
- format slot 18 of player with slot 27 of {_player} to be unstealable
- format slot 19 of player with slot 28 of {_player} to be unstealable
- format slot 20 of player with slot 29 of {_player} to be unstealable
- format slot 21 of player with slot 30 of {_player} to be unstealable
- format slot 22 of player with slot 31 of {_player} to be unstealable
- format slot 23 of player with slot 32 of {_player} to be unstealable
- format slot 24 of player with slot 33 of {_player} to be unstealable
- format slot 25 of player with slot 34 of {_player} to be unstealable
- format slot 26 of player with slot 35 of {_player} to be unstealable
- format slot 27 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 28 of player with gray stained glass pane named "&7{@name}" to be unstealable
- if slot 39 of {_player} is equal to air:
- format slot 29 of player with redstone dust named "&8⫸ &cNo Helmet" to be unstealable
- else:
- format slot 29 of player with slot 39 of {_player} to be unstealable
- if slot 38 of {_player} is equal to air:
- format slot 30 of player with redstone dust named "&8⫸ &cNo Chestplate" to be unstealable
- else:
- format slot 30 of player with slot 38 of {_player} to be unstealable
- if slot 37 of {_player} is equal to air:
- format slot 31 of player with redstone dust named "&8⫸ &cNo Leggings" to be unstealable
- else:
- format slot 31 of player with slot 37 of {_player} to be unstealable
- if slot 36 of {_player} is equal to air:
- format slot 32 of player with redstone dust named "&8⫸ &cNo Boots" to be unstealable
- else:
- format slot 32 of player with slot 36 of {_player} to be unstealable
- format slot 33 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 34 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 35 of player with barrier named "&8⫸ &cClose" to close
- format slot 36 of player with slot 0 of {_player} to be unstealable
- format slot 37 of player with slot 1 of {_player} to be unstealable
- format slot 38 of player with slot 2 of {_player} to be unstealable
- format slot 39 of player with slot 3 of {_player} to be unstealable
- format slot 40 of player with slot 4 of {_player} to be unstealable
- format slot 41 of player with slot 5 of {_player} to be unstealable
- format slot 42 of player with slot 6 of {_player} to be unstealable
- format slot 43 of player with slot 7 of {_player} to be unstealable
- format slot 44 of player with slot 8 of {_player} to be unstealable
- else:
- send "&a&lUHC &r&8⫸ &7This player is not online." to player
- else:
- send "Unknown command." to command sender
- on any move:
- if player is in world "lobby":
- if {jump-user::%player%} is set:
- if (y coord of player) is smaller than 80:
- if {jump-user::%player%} is equal to 0:
- teleport player to location (-24, 101, 0) in world "lobby"
- else if {jump.cp::%{jump-user::%player%}%} is set:
- teleport player to {jump.cp::%{jump-user::%player%}%}
- else:
- teleport player to location (0, 102, 0) in world "lobby"
- else:
- if (y coord of player) is smaller than 100:
- teleport player to location (0, 102, 0) in world "lobby"
- on rightclick on a player:
- if {invOpen::%player%} is not set:
- if {UHCStart} is not true:
- if {TeamsStatus} is true:
- set {inviteConfirm::%player%} to true
- set {invOpen::%player%} to true
- open chest with 1 row named "&8⫸ Invite &4%clicked player%" to player
- wait 1 tick
- format slot 0 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 1 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 2 of player with light green stained clay named "&8⫸ &7Invite &6%clicked player%" to close then run [make player execute command "/team invite %clicked player%"]->[delete {inviteConfirm::%player%}]
- format slot 3 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 4 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 5 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 6 of player with red stained clay named "&8⫸ &cCancel" to close then run [delete {inviteConfirm::%player%}]
- format slot 7 of player with gray stained glass pane named "&7{@name}" to be unstealable
- format slot 8 of player with gray stained glass pane named "&7{@name}" to be unstealable
- loop 20 times:
- if {inviteConfirm::%player%} is true:
- set {_clickedPlayer} to ("%clicked player%" parsed as offlineplayer)
- if {_clickedPlayer} is offline:
- close inventory of player
- delete {inviteConfirm::%player%}
- wait 1 second
- if {inviteConfirm::%player%} is true:
- close inventory of player
- delete {inviteConfirm::%player%}
- command /host [<text>]:
- trigger:
- if player is op:
- if arg 1 is not set:
- send "&a&lUHC &r&8⫸ &7Usage of /host:" to command sender
- send "&8⫸ &f/host <player> &7- &oAdd staff member." to command sender
- send "&8⫸ &f/host reset &7- &oRemove all staff members." to command sender
- else if arg 1 is equal to "reset":
- if {Host} is not set:
- send "&a&lHost &r&8⫸ &7There are no hosts." to command sender
- else:
- delete {Host::*}
- delete {Host}
- send "&a&lHost &r&8⫸ &7The host as been removed." to command sender
- execute command "/updatescoreboard"
- else:
- set {_player} to ("%arg 1%" parsed as offlineplayer)
- if {Host} is set:
- send "&a&lHost &r&8⫸ &6%{Host}% &7is already the host, please use &6/host reset&7." to command sender
- else:
- if {_player} is online:
- set {Host::%{_player}%} to true
- set {Host} to {_player}
- send "&a&lHost &r&8⫸ &6%{_player}% &7is the host for the next UHC." to command sender
- execute command "/updatescoreboard"
- else:
- send "&a&lHost &r&8⫸ &6%{_player}% &7is not online." to command sender
- else:
- send "Unknown command." to command sender
- command /helpop [<text>]:
- trigger:
- if arg 1 is not set:
- send "&a&lUHC &r&8⫸ &7Usage: /helpop <message>" to command sender
- else:
- set {_host} to ("%{Host}%" parsed as offlineplayer)
- send "&a&lHelp &r&8⫸ &7From: &6%command sender%" to {_host}
- send "&a&lHelp &r&8⫸ &7%arg 1%" to {_host}
- command /mute [<text>]:
- trigger:
- set {_access} to false
- if {Staff::%player%} is true:
- set {_access} to true
- else if player is op:
- set {_access} to true
- if {_access} is true:
- if arg 1 is not set:
- send "&a&lUHC &r&8⫸ &7Usage: /mute <player>" to command sender
- else if arg 1 is equal to "reset":
- delete {mute::*}
- send "&a&lUHC &r&8⫸ &7All players unmuted." to command sender
- else:
- set {_arg1} to ("%arg 1%" parsed as offlineplayer)
- if {_arg1} is online:
- if {mute::%{_arg1}%} is set:
- delete {mute::%{_arg1}%}
- send "&a&lUHC &r&8⫸ &6%{_arg1}% &7is unmuted." to command sender
- else:
- set {mute::%{_arg1}%} to true
- send "&a&lUHC &r&8⫸ &6%{_arg1}% &7is muted." to command sender
- else:
- send "&a&lUHC &r&8⫸ &6%{_arg1}% &7is not online." to command sender
- else:
- send "Unknown command." to command sender
- command /pregen <number>:
- trigger:
- if player is op:
- execute player command "/tp %player% 0 100 0"
- wait 1 second
- execute player command "/wb shape square"
- wait 1 second
- execute player command "/wb set <arg-1>"
- wait 1 second
- execute player command "/wb fill 60"
- wait 1 second
- execute player command "/wb fill confirm"
- else:
- send "Unknown command." to command sender
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement