Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- every second:
- if {game.start} is false:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&e&lDUELS"
- set score " " in sidebar of loop-player to 8
- set score "&fPlayers: &a%{game.players}%/2" in sidebar of loop-player to 7
- set score " " in sidebar of loop-player to 6
- if {game.players} = 2:
- set score "&fStarting in &a%{game.timer}%&as" in sidebar of loop-player to 5
- else:
- set score "&fWaiting..." in sidebar of loop-player to 5
- set score " " in sidebar of loop-player to 4
- set score "&fServer: &a%server name%" in sidebar of loop-player to 3
- set score "" in sidebar of loop-player to 2
- set score "&e%{serverip}%" in sidebar of loop-player to 1
- else:
- loop all players:
- wipe loop-player's sidebar
- set name of sidebar of loop-player to "&e&lDUELS"
- set score " " in sidebar of loop-player to 11
- if {gametimer.sec} > 10:
- set score "&fTime Left: &a0%{gametimer.min}%:%{gametimer.sec}%" in sidebar of loop-player to 10
- else if {gametimer.sec} < 10:
- set score "&fTime Left: &a0%{gametimer.min}%:0%{gametimer.sec}%" in sidebar of loop-player to 10
- else if {gametimer.sec} = 10:
- set score "&fTime Left: &a0%{gametimer.min}%:10" in sidebar of loop-player to 10
- set score " " in sidebar of loop-player to 9
- if {deathplayer} isn't set:
- set score "&a %{playerid.1}% %health of {playerid.1}%&c❤" in sidebar of loop-player to 8
- set score "&c %{playerid.2}% &a%health of {playerid.2}%&c❤" in sidebar of loop-player to 7
- else if {deathplayer} is {playerid.1}:
- set score "&a %{playerid.1}% &cDEAD" in sidebar of loop-player to 8
- set score "&c %{playerid.2}% &a%health of {playerid.2}%&c❤" in sidebar of loop-player to 7
- else if {deathplayer} is {playerid.2}:
- set score "&a %{playerid.1}% %health of {playerid.1}%&c❤" in sidebar of loop-player to 8
- set score "&c %{playerid.2}% &cDEAD" in sidebar of loop-player to 7
- set score " " in sidebar of loop-player to 6
- set score "&fMode: &a%{mode}% Duel" in sidebar of loop-player to 5
- set score " " in sidebar of loop-player to 4
- set score "&fMap: &a%{map}%" in sidebar of loop-player to 3
- set score "" in sidebar of loop-player to 2
- set score "&e%{serverip}%" in sidebar of loop-player to 1
- on break:
- if block isn't oak wood plank or cobblestone or obsidian:
- cancel the event
- on drop:
- cancel event
- On Hunger MEter Change:
- cancel event
- every second:
- if {game.start} is true:
- if {end} is false:
- set {playerid.1} tab name to "&a%{playerid.1}%"
- set {playerid.1}'s tag to "&f%health of {playerid.1}% &c❤ &a"
- set {playerid.2} tab name to "&c%{playerid.2}%"
- set {playerid.2}'s tag to "&f%health of {playerid.2}% &c❤ &c"
- every second:
- if {game.start} is true:
- add 1 to {gameinvtimer.sec}
- if {gameinvtimer.sec} is higher than 59:
- if {game.start} is true:
- set {gameinvtimer.sec} to 0
- add 1 to {gameinvtimer.min}
- every second:
- if {game.start} is true:
- if {gametimer.min} isn't equal to 0:
- remove 1 from {gametimer.sec}
- if {gametimer.sec} = 0:
- if {game.start} is true:
- if {gametimer.min} isn't equal to 0:
- set {gametimer.sec} to 60
- remove 1 from {gametimer.min}
- if {gametimer.sec} = 60:
- if {game.start} is true:
- if {gametimer.min} = 0:
- if {gametimer.sec} > 0:
- remove 1 from {gametimer.sec}
- else if {gametimer.sec} < 60:
- if {game.start} is true:
- if {gametimer.min} = 0:
- if {gametimer.sec} > 0:
- remove 1 from {gametimer.sec}
- if {gametimer.min} = 0:
- if {gametimer.sec} = 0:
- if {draw} = true:
- set {end} to true
- set {playerid.1} tab name to "&7%{playerid.1}%"
- set {playerid.1}'s tag to "&7"
- set {playerid.2} tab name to "&7%{playerid.2}%"
- set {playerid.2}'s tag to "&7"
- loop all players:
- clear loop-player's inventory
- set gamemode of loop-player to adventure
- hide loop-player from all players
- allow fly for loop-player
- set slot 8 of loop-player to bed named "&c&lReturn to Lobby &r&7(Right Click)" with lore "&7Right-click to leave to the lobby!"
- set slot 0 of loop-player to compass named "&a&lTeleporter &r&7(Right Click)" with lore "&7Right-click to spectate players!"
- set slot 4 of loop-player to redstone comparator item named "&b&lSpectator Settings &r&7(Right Click)" with lore "&7Right-click to change your spectator settings!"
- broadcast "&a&l▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬"
- if {mode} = "Classic":
- broadcast " &e&lClassic Duel &7- &f&l08:00"
- if {mode} = "Bow":
- broadcast " &e&lBow Duel &7- &f&l08:00"
- if {mode} = "Op":
- broadcast " &e&lOP Duel &7- &f&l08:00"
- if {mode} = "Potion":
- broadcast " &e&lPotion Duel &7- &f&l08:00"
- if {mode} = "UHC":
- broadcast " &e&lUHC Duel &7- &f&l08:00"
- broadcast "&r"
- broadcast "&r &fIt's a draw!"
- broadcast "&r &7%{playerid.1}% %{playerid.2}% "
- broadcast "&r"
- set {hv} to health of {playerid.1}
- set {ha} to health of {playerid.2}
- if {hv} = 10:
- send "&r &c❤❤❤❤❤❤❤❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- else if {hv} > 10:
- send "&r &c❤❤❤❤❤❤❤❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- if {hv} = 9:
- send "&r &c❤❤❤❤❤❤❤❤❤&f❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- else if {hv} > 9:
- if {hv} < 10:
- send "&r &c❤❤❤❤❤❤❤❤❤&f❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- if {hv} = 8:
- send "&r &c❤❤❤❤❤❤❤❤&f❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- else if {hv} > 8:
- if {hv} < 9:
- send "&r &c❤❤❤❤❤❤❤❤&f❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- if {hv} = 7:
- send "&r &c❤❤❤❤❤❤❤&f❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- else if {hv} > 7:
- if {hv} < 8:
- send "&r &c❤❤❤❤❤❤❤&f❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- if {hv} = 6:
- send "&r &c❤❤❤❤❤❤&f❤❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- else if {hv} > 6:
- if {hv} < 7:
- send "&r &c❤❤❤❤❤❤&f❤❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- if {hv} = 5:
- send "&r &c❤❤❤❤❤&f❤❤❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- else if {hv} > 5:
- if {hv} < 6:
- send "&r &c❤❤❤❤❤&f❤❤❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- if {hv} = 4:
- send "&r &c❤❤❤❤&f❤❤❤❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- else if {hv} > 4:
- if {hv} < 5:
- send "&r &c❤❤❤❤&f❤❤❤❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- if {hv} = 3:
- send "&r &c❤❤❤&f❤❤❤❤❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- else if {hv} > 3:
- if {hv} < 4:
- send "&r &c❤❤❤&f❤❤❤❤❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- if {hv} = 2:
- send "&r &c❤❤&f❤❤❤❤❤❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- else if {hv} > 2:
- if {hv} < 3:
- send "&r &c❤❤&f❤❤❤❤❤❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- if {hv} = 1:
- send "&r &c❤&f❤❤❤❤❤❤❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- else if {hv} > 1:
- if {hv} < 2:
- send "&r &c❤&f❤❤❤❤❤❤❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- if {hv} = 0:
- send "&r &f❤❤❤❤❤❤❤❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- else if {hv} > 0:
- if {hv} < 1:
- send "&r &f❤❤❤❤❤❤❤❤❤❤ &7- &a%{playerid.1} %'s Health " to {playerid.2}
- if {ha} = 10:
- send "&r &c❤❤❤❤❤❤❤❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- else if {ha} > 10:
- send "&r &c❤❤❤❤❤❤❤❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- if {ha} = 9:
- send "&r &c❤❤❤❤❤❤❤❤❤&f❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- else if {ha} > 9:
- if {ha} < 10:
- send "&r &c❤❤❤❤❤❤❤❤❤&f❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- if {ha} = 8:
- send "&r &c❤❤❤❤❤❤❤❤&f❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- else if {ha} > 8:
- if {ha} < 9:
- send "&r &c❤❤❤❤❤❤❤❤&f❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- if {ha} = 7:
- send "&r &c❤❤❤❤❤❤❤&f❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- else if {ha} > 7:
- if {ha} < 8:
- send "&r &c❤❤❤❤❤❤❤&f❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- if {ha} = 6:
- send "&r &c❤❤❤❤❤❤&f❤❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- else if {ha} > 6:
- if {ha} < 7:
- send "&r &c❤❤❤❤❤❤&f❤❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- if {ha} = 5:
- send "&r &c❤❤❤❤❤&f❤❤❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- else if {ha} > 5:
- if {ha} < 6:
- send "&r &c❤❤❤❤❤&f❤❤❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- if {ha} = 4:
- send "&r &c❤❤❤❤&f❤❤❤❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- else if {ha} > 4:
- if {ha} < 5:
- send "&r &c❤❤❤❤&f❤❤❤❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- if {ha} = 3:
- send "&r &c❤❤❤&f❤❤❤❤❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- else if {ha} > 3:
- if {ha} < 4:
- send "&r &c❤❤❤&f❤❤❤❤❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- if {ha} = 2:
- send "&r &c❤❤&f❤❤❤❤❤❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- else if {ha} > 2:
- if {ha} < 3:
- send "&r &c❤❤&f❤❤❤❤❤❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- if {ha} = 1:
- send "&r &c❤&f❤❤❤❤❤❤❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- else if {ha} > 1:
- if {ha} < 2:
- send "&r &c❤&f❤❤❤❤❤❤❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- if {ha} = 0:
- send "&r &f❤❤❤❤❤❤❤❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- else if {ha} > 0:
- if {ha} < 1:
- send "&r &f❤❤❤❤❤❤❤❤❤❤ &7- &a%{playerid.2}%'s Health " to {playerid.1}
- broadcast "&r"
- broadcast "&a&l▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬"
- send all players title "&e&lDRAW!" with subtitle "&fOut of time!" for 6 second
- set {draw} to false
- wait 7 seconds
- execute console command "/xreg regen UHC"
- loop all players:
- send loop-player to "%{hubserver}%"
- wait 1.5 second
- restart server
- On Pick Up arrow:
- if {end} is true:
- cancel event
- if {game.start} is true:
- if player's gamemode is adventure:
- cancel event
- on skript load:
- clear {deathplayer}
- clear {playerid.1}
- clear {playerid.2}
- set {playerid} to 0
- set {end} to false
- set {draw} to true
- if folder "plugins/Duels" doesn't exists:
- create folder "plugins/Duels"
- if file "plugins/Duels/config.yml" doesn't exists:
- create file "plugins/Duels/config.yml"
- wf "" to "plugins/Duels/config.yml"
- wf "##----------------------------------------------##" to "plugins/Duels/config.yml"
- wf "## DUELS BY _EMME_ENNE_ ##" to "plugins/Duels/config.yml"
- wf "##----------------------------------------------##" to "plugins/Duels/config.yml"
- WF "" to "plugins/Duels/config.yml"
- wf "##Map name displays in Scoreboard" to "plugins/Duels/config.yml"
- wf "MapName: Courtyard v3" to "plugins/Duels/config.yml"
- wf "" to "plugins/Duels/config.yml"
- wf "##Server to send players when game finishes" to "plugins/Duels/config.yml"
- wf "HubServer: lobby" to "plugins/Duels/config.yml"
- wf "" to "plugins/Duels/config.yml"
- wf "##Server Ip displays in Scoreboard" to "plugins/Duels/config.yml"
- wf "ServerIp: www.hypixel.net" to "plugins/Duels/config.yml"
- wf "" to "plugins/Duels/config.yml"
- wf "##Modes: Op - Bow - UHC - Potion - Classic" to "plugins/Duels/config.yml"
- wf "Mode: Classic" to "plugins/Duels/config.yml"
- set {map} to value "MapName" get of "plugins/Duels/config.yml"
- set {hubserver} to value "HubServer" get of "plugins/Duels/config.yml"
- set {serverip} to value "ServerIp" get of "plugins/Duels/config.yml"
- set {mode} to value "Mode" get of "plugins/Duels/config.yml"
- else:
- set {map} to value "MapName" get of "plugins/Duels/config.yml"
- set {hubserver} to value "HubServer" get of "plugins/Duels/config.yml"
- set {serverip} to value "ServerIp" get of "plugins/Duels/config.yml"
- set {mode} to value "Mode" get of "plugins/Duels/config.yml"
- set {game.start} to false
- set {game.players} to 0
- clear {playerid.1}
- clear {playerid.2}
- set {playerid} to 0
- set {gametimer.sec} to 60
- set {gametimer.min} to 7
- set difficulty of world "world" to hard
- clear {gameinvtimer.sec}
- set {gameinvtimer.min} to 0
- if {mode} != "Classic" or "Op" or "Bow" or "UHC" or "Potion":
- message "&f[Duels] &cMode &e""%{mode}%""&c Unknown! Modes Available: Classic - Op - Bow - UHC - Potion" to console
- message "&f[Duels] &cMode set to &eClassic&c!" to console
- on chat:
- if player's gamemode is survival:
- if {game.start} is true:
- cancel event
- broadcast "&a[GAME] &7%player%: %message%"
- else:
- if {end} is false:
- cancel event
- broadcast "&7&k%player%&r&7: %message%"
- else:
- cancel event
- broadcast "&7[SPECTATOR] %player%&r&7: %message%"
- else:
- cancel event
- loop all players:
- if loop-player's gamemode is adventure:
- send "&7[SPECTATOR] %player%&r&7: %message%" to loop-player
- on rightclick:
- set {_name} to name of player's tool
- if {_name} contains "&6Golden":
- remove player head from player
- apply potion of swiftness 1 to the player for 10 seconds
- apply regeneration 1 to the player for 5 seconds
- apply regeneration 1 to the player for 5 seconds
- on join:
- if {game.start} is false:
- if {game.players} != 2:
- if {mode} != "Classic" or "Op" or "Bow" or "UHC" or "Potion":
- send "&cMode &e""%{mode}%""&c Unknown! Modes Available: Classic - Op - Bow - UHC - Potion"
- set {mode} to "Classic"
- send "&cMode set to &eClassic&c!"
- set {enderpearl.%player%} to true
- if {mode} = "Potion":
- set {enderpearl.%player%.time} to 15
- else if {mode} = "Bow":
- set {enderpearl.%player%.time} to 3
- set {autoteleport.%player%} to false
- set {nightvision.%player%} to true
- set {showspectator.%player%} to false
- set {sendhub.%player%} to true
- set {fly.%player%} to true
- disable fly for player
- heal player
- set player's level to 0
- set player's xp to 0
- apply night vision to player for 10000 seconds
- remove speed from player
- remove invisibility from player
- disable fly for player
- set the player's food level to 10
- set the maximum health of the player to 10
- set player's gamemode to survival
- add 1 to {playerid}
- if {playerid.%{playerid}%} isn't set:
- set {playerid.%{playerid}%} to player
- add 1 to {game.players}
- if {playerid.1} = player:
- teleport {playerid.1} to {gamespawn.1}
- else if {playerid.2} = player:
- teleport {playerid.2} to {gamespawn.2}
- set player tab name to "&f&k%player%"
- set player's tag to "&f&k"
- set join message to "&7&k%player%&r&e has joined (&b%{game.players}%&e/&b2&e)!"
- clear player's inventory
- set slot 8 of player to bed named "&c&lReturn to Lobby &r&7(Right Click)" with lore "&7Right-click to leave to the lobby!"
- if {game.players} = 2:
- set {game.timer} to 10
- else:
- set {autoteleport.%player%} to false
- set {nightvision.%player%} to true
- set {showspectator.%player%} to false
- set {sendhub.%player%} to true
- set {fly.%player%} to true
- apply night vision to player for 10000 seconds
- heal player
- set join message to ""
- set player tab name to "&7%player%"
- set player's tag to "&7"
- teleport player to {gamespawn.spectator}
- set gamemode of player to adventure
- loop all players:
- if gamemode of loop-player is adventure:
- hide loop-player to all players
- apply invisibility to player for 10000 seconds
- allow fly for player
- set slot 8 of player to bed named "&c&lReturn to Lobby &r&7(Right Click)" with lore "&7Right-click to leave to the lobby!"
- set slot 0 of player to compass named "&a&lTeleporter &r&7(Right Click)" with lore "&7Right-click to spectate players!"
- set slot 4 of player to redstone comparator item named "&b&lSpectator Settings &r&7(Right Click)" with lore "&7Right-click to change your spectator settings!"
- else:
- set {autoteleport.%player%} to false
- set {nightvision.%player%} to true
- set {showspectator.%player%} to false
- set {sendhub.%player%} to true
- apply night vision to player for 10000 seconds
- heal player
- set {fly.%player%} to true
- set join message to ""
- set player tab name to "&7%player%"
- set player's tag to "&7"
- teleport player to {gamespawn.spectator}
- set gamemode of player to adventure
- loop all players:
- if gamemode of loop-player is adventure:
- hide loop-player to all players
- apply invisibility to player for 10000 seconds
- allow fly for player
- set slot 8 of player to bed named "&c&lReturn to Lobby &r&7(Right Click)" with lore "&7Right-click to leave to the lobby!"
- set slot 0 of player to compass named "&a&lTeleporter &r&7(Right Click)" with lore "&7Right-click to spectate players!"
- set slot 4 of player to redstone comparator item named "&b&lSpectator Settings &r&7(Right Click)" with lore "&7Right-click to change your spectator settings!"
- on quit:
- if player's gamemode is not adventure:
- if {game.start} is false:
- if {game.players} > 0:
- remove 1 from {game.players}
- if {playerid.1} = player:
- clear {playerid.1}
- if {playerid} > 0:
- remove 1 from {playerid}
- else if {playerid.2} = player:
- clear {playerid.2}
- if {playerid} > 0:
- remove 1 from {playerid}
- set quit message to "&7&k%player%&r&e has quit!"
- else:
- set quit message to "&7%player% forfeited the Duel."
- loop all players:
- clear loop-player's inventory
- set gamemode of loop-player to adventure
- hide loop-player from all players
- allow fly for loop-player
- set slot 8 of loop-player to bed named "&c&lReturn to Lobby &r&7(Right Click)" with lore "&7Right-click to leave to the lobby!"
- set slot 0 of loop-player to compass named "&a&lTeleporter &r&7(Right Click)" with lore "&7Right-click to spectate players!"
- set slot 4 of loop-player to redstone comparator item named "&b&lSpectator Settings &r&7(Right Click)" with lore "&7Right-click to change your spectator settings!"
- send loop-player title "&6&lVICTORY!" with subtitle "&f%loop-player% won the duel!" for 6 second
- wait 7 seconds
- loop all players:
- send loop-player to "%{hubserver}%"
- wait 1.5 second
- restart server
- else:
- set quit message to ""
- if {game.players} = 0:
- restart server
- every second:
- if {game.players} = 2:
- if {game.timer} > 0:
- remove 1 from {game.timer}
- if {game.timer} = 9:
- wait a tick
- broadcast "&eThe game starts in &610&e seconds!"
- if {game.timer} = 5:
- broadcast "&eThe game starts in &c5&e seconds!"
- send all players title "&e5" with subtitle "&r" for 1 second
- if {game.timer} = 4:
- broadcast "&eThe game starts in &c4&e seconds!"
- send all players title "&e4" with subtitle "&r" for 1 second
- if {game.timer} = 3:
- broadcast "&eThe game starts in &c3&e seconds!"
- send all players title "&c3" with subtitle "&r" for 1 second
- if {game.timer} = 2:
- broadcast "&eThe game starts in &c2&e seconds!"
- send all players title "&c2" with subtitle "&r" for 1 second
- if {game.timer} = 1:
- broadcast "&eThe game starts in &c1&e seconds!"
- send all players title "&c1" with subtitle "&r" for 1 second
- wait 1 second
- if {game.players} = 2:
- make console execute command "/game start"
- else:
- broadcast "&cWe don't have enough players! Start cancelled."
- stop
- command /game [<text>] [<number>]:
- permission: game.admin
- permission message: &cYou don't have permissions!
- trigger:
- if arg 1 is "spawn":
- if arg 2 isn't set:
- send "&cNot enough args! Try with /game spawn 1 or /game spawn 2 !"
- if arg 2 is 1:
- set {gamespawn.1} to position of player
- send "Spawn 1 Set"
- else if arg 2 is 2:
- set {gamespawn.2} to position of player
- send "Spawn 2 Set"
- else if arg 2 is 3:
- set {gamespawn.spectator} to position of player
- send "Spawn Spectator Set"
- if arg 1 is "start":
- set {game.start} to true
- teleport {playerid.1} to {gamespawn.1}
- teleport {playerid.2} to {gamespawn.2}
- set {playerid.1} tab name to "&a%{playerid.1}%"
- set {playerid.1}'s tag to "&f%health of {playerid.1}%&c❤ &a"
- set {playerid.2} tab name to "&c%{playerid.2}%"
- set {playerid.2}'s tag to "&f%health of {playerid.2}%&c❤ &c"
- send all players title "&aGO!" with subtitle "&r" for 2 second
- loop all players:
- if gamemode of loop-player is survival:
- if {mode} = "Classic":
- heal loop-player
- set the loop-player's food level to 10
- clear loop-player's inventory
- set slot 0 of loop-player to iron sword
- set slot 1 of loop-player to bow
- set slot 2 of loop-player to fishing rod
- set slot 3 of loop-player to 10 arrow
- equip loop-player with iron helmet
- equip loop-player with iron chestplate
- equip loop-player with iron leggings
- equip loop-player with iron boots
- if {mode} = "Bow":
- apply speed 2 to player for 10000 seconds
- heal loop-player
- set the loop-player's food level to 10
- clear loop-player's inventory
- set slot 0 of loop-player to bow of Infinity 1
- set slot 1 of loop-player to 4 ender pearl
- set slot 2 of loop-player to arrow
- set slot 3 of loop-player to compass named "&aEnemy Tracker"
- equip loop-player with iron helmet
- equip loop-player with iron chestplate
- equip loop-player with iron leggings
- equip loop-player with iron boots
- if {mode} = "Op":
- heal loop-player
- set the loop-player's food level to 10
- clear loop-player's inventory
- set slot 0 of loop-player to diamond sword of sharpness 5
- set slot 1 of loop-player to bow of power 4
- set slot 2 of loop-player to fishing rod
- set slot 3 of loop-player to flint and steel
- set durability of slot 3 of inventory of loop-player to 54
- set slot 4 of loop-player to 30 arrow
- set slot 5 of loop-player to 3 golden apple
- set slot 6 of loop-player to splash potion of speed 2
- set slot 7 of loop-player to splash potion of regeneration 2
- equip loop-player with diamond helmet
- equip loop-player with diamond chestplate
- equip loop-player with diamond leggings
- equip loop-player with diamond boots
- if {mode} = "Potion":
- heal loop-player
- set the loop-player's food level to 10
- clear loop-player's inventory
- set slot 0 of loop-player to diamond sword of sharpness 1
- set slot 1 of loop-player to 16 ender pearl
- set slot 2 of loop-player to 64 golden carrot
- set slot 3 of loop-player to 4 potion of speed 2
- set slot 4 of loop-player to 2 splash potion of poison 2
- set slot 5 of loop-player to splash potion of instant health 2
- set slot 6 of loop-player to splash potion of instant health 2
- set slot 7 of loop-player to splash potion of instant health 2
- set slot 8 of loop-player to splash potion of instant health 2
- set slot 9 of loop-player to splash potion of instant health 2
- set slot 10 of loop-player to splash potion of instant health 2
- set slot 11 of loop-player to splash potion of instant health 2
- set slot 12 of loop-player to splash potion of instant health 2
- set slot 13 of loop-player to splash potion of instant health 2
- set slot 14 of loop-player to splash potion of instant health 2
- set slot 15 of loop-player to splash potion of instant health 2
- set slot 16 of loop-player to splash potion of instant health 2
- set slot 17 of loop-player to splash potion of instant health 2
- set slot 18 of loop-player to splash potion of instant health 2
- set slot 19 of loop-player to splash potion of instant health 2
- set slot 20 of loop-player to splash potion of instant health 2
- set slot 21 of loop-player to splash potion of instant health 2
- set slot 22 of loop-player to splash potion of instant health 2
- set slot 23 of loop-player to splash potion of instant health 2
- set slot 24 of loop-player to splash potion of instant health 2
- set slot 25 of loop-player to splash potion of instant health 2
- set slot 26 of loop-player to splash potion of instant health 2
- set slot 27 of loop-player to splash potion of instant health 2
- set slot 28 of loop-player to splash potion of instant health 2
- set slot 29 of loop-player to splash potion of instant health 2
- set slot 30 of loop-player to splash potion of instant health 2
- set slot 31 of loop-player to splash potion of instant health 2
- set slot 32 of loop-player to splash potion of instant health 2
- set slot 33 of loop-player to splash potion of instant health 2
- set slot 34 of loop-player to splash potion of instant health 2
- set slot 35 of loop-player to splash potion of instant health 2
- set slot 36 of loop-player to splash potion of instant health 2
- set slot 37 of loop-player to splash potion of instant health 2
- equip loop-player with diamond helmet
- equip loop-player with diamond chestplate
- equip loop-player with diamond leggings
- equip loop-player with diamond boots
- if {mode} = "UHC":
- heal loop-player
- set the loop-player's food level to 10
- clear loop-player's inventory
- set slot 0 of loop-player to diamond sword of sharpness 3
- set slot 1 of loop-player to bow of power 3
- set slot 2 of loop-player to fishing rod
- set slot 3 of loop-player to diamond axe
- set slot 4 of loop-player to 6 golden apple
- set slot 5 of loop-player to 3 of ("zsoccer23" parsed as offline player)'s skull named "&6Golden Head"
- set slot 6 of loop-player to 1 lava bucket
- set slot 7 of loop-player to 1 lava bucket
- set slot 8 of loop-player to 1 water bucket
- set slot 9 of loop-player to 1 water bucket
- set slot 10 of loop-player to 24 arrow
- set slot 11 of loop-player to 64 oak wood planks
- set slot 12 of loop-player to 64 oak wood planks
- set slot 13 of loop-player to iron pickaxe
- equip loop-player with diamond helmet of protection 2
- equip loop-player with diamond chestplate of protection 2
- equip loop-player with diamond leggings of protection 2
- equip loop-player with diamond boots of protection 2
- if loop-player's gamemode is survival:
- if {mode} = "Classic":
- send "&a&l▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to loop-player
- send " &f&lClassic Duel" to loop-player
- send "&r" to loop-player
- send " &e&lEliminate your opponent!" to loop-player
- send "&r" to loop-player
- if {mode} = "Bow":
- send "&a&l▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to loop-player
- send " &f&lBow Duel" to loop-player
- send "&r" to loop-player
- send " &e&lWork to eliminate your opponent using your bow!" to loop-player
- send "&r" to loop-player
- if {mode} = "UHC":
- send "&a&l▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to loop-player
- send " &f&lUHC Duel" to loop-player
- send "&r" to loop-player
- send " &e&lEliminate your opponent!" to loop-player
- send "&r" to loop-player
- if {mode} = "Op":
- send "&a&l▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to loop-player
- send " &f&lOP Duel" to loop-player
- send "&r" to loop-player
- send " &e&lEliminate your opponent!" to loop-player
- send "&r" to loop-player
- if {mode} = "Potion":
- send "&a&l▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to loop-player
- send " &f&lPotion Duel" to loop-player
- send "&r" to loop-player
- send " &e&lEliminate your opponent!" to loop-player
- send "&r" to loop-player
- send " &f&lOpponent: &7%{playerid.2}%" to {playerid.1}
- send " &f&lOpponent: &7%{playerid.1}%" to {playerid.2}
- loop all players:
- if loop-player's gamemode is survival:
- send "&r" to loop-player
- send "&a&l▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬" to loop-player
- on damage:
- if damage cause is attack:
- if {mode} = "Bow":
- cancel event
- on health regen:
- if {mode} = "Bow":
- Cancel event
- on burn of wood or log or wool or leaves:
- cancel event
- every second:
- loop all players:
- if {enderpearl.%loop-player%} is false:
- if {mode} = "Potion":
- if {enderpearl.%loop-player%.time} < 16:
- remove 1 from {enderpearl.%loop-player%.time}
- if {mode} = "Bow":
- if {enderpearl.%loop-player%.time} < 4:
- remove 1 from {enderpearl.%loop-player%.time}
- on right click holding a ender pearl:
- if {mode} = "Potion":
- if {enderpearl.%player%} is true:
- set {enderpearl.%player%} to false
- wait 15 seconds
- set {enderpearl.%player%} to true
- set {enderpearl.%player%.time} to 15
- else:
- send "&cYour must wait &e%{enderpearl.%player%.time}%&es&c before using this!"
- cancel event
- if {mode} = "Bow":
- if {enderpearl.%player%} is true:
- set {enderpearl.%player%} to false
- wait 3 seconds
- set {enderpearl.%player%} to true
- set {enderpearl.%player%.time} to 3
- else:
- send "&cYour must wait &e%{enderpearl.%player%.time}%&es&c before using this!"
- cancel event
- on damage:
- if {game.start} is true:
- if attacker's gamemode isn't adventure:
- if victim's gamemode isn't adventure:
- if damage cause is not fall:
- if damage cause is a projectile:
- if attacker isn't holding a fishing rod:
- wait a tick
- if {playerid.1} = victim:
- send "&a%victim%&7 is on &c%health of victim% &7HP!" to attacker
- else if {playerid.2} = victim:
- send "&c%victim%&7 is on &c%health of victim% &7HP!" to attacker
- send action bar from "&fDamage Dealt: &a&l%damage%&r&c❤" to attacker
- else:
- if {mode} != "Bow":
- if attacker isn't holding a fishing rod:
- wait a tick
- send action bar from "&fDamage Dealt: &a&l%damage%&r&c❤" to attacker
- else:
- cancel event
- else:
- cancel event
- else:
- cancel event
- else:
- cancel event
- on item damage:
- if item is not flint and steel:
- cancel event
- on right click:
- if player is holding a bed named "&c&lReturn to Lobby &r&7(Right Click)" with lore "&7Right-click to leave to the lobby!":
- if {sendhub.%player%} is true:
- set {sendhub.%player%} to false
- send "&a&lTeleporting you to the lobby in 3 seconds..."
- send "&a&l Right-click again to cancel the teleport!"
- wait 3 seconds
- if {sendhub.%player%} is false:
- set {sendhub.%player%} to true
- send player to "%{hubserver}%"
- else:
- set {sendhub.%player%} to true
- send "&c&lTeleport cancelled!"
- stop
- if player is holding a compass named "&a&lTeleporter &r&7(Right Click)" with lore "&7Right-click to spectate players!":
- open chest with 1 row named "&8Teleporter" to player
- wait a tick
- set slot 0 of player's current inventory to skull of {playerid.1} named "&7%{playerid.1}%" with lore "&r||&7Click to spectate!"
- set slot 1 of player's current inventory to skull of {playerid.2} named "&7%{playerid.2}%" with lore "&r||&7Click to spectate!"
- if is holding a redstone comparator item named "&b&lSpectator Settings &r&7(Right Click)" with lore "&7Right-click to change your spectator settings!":
- open chest with 4 row named "&8Spectator Settings" to player
- wait a tick
- set slot 11 of player's current inventory to leather boots named "&aNo Speed"
- set slot 12 of player's current inventory to chain boots named "&aSpeed I"
- set slot 13 of player's current inventory to iron boots named "&aSpeed II"
- set slot 14 of player's current inventory to gold boots named "&aSpeed III"
- set slot 15 of player's current inventory to diamond boots named "&aSpeed IV"
- if {autoteleport.%player%} is false:
- set slot 20 of player's current inventory to compass named "&aEnable Auto Teleport" with lore "&7Click to enable auto teleport!"
- else:
- set slot 20 of player's current inventory to compass named "&cDisable Auto Teleport" with lore "&7Click to disable auto teleport!"
- if {nightvision.%player%} is true:
- set slot 21 of player's current inventory to ender pearl named "&cDisable Night Vision" with lore "&7Click to disable night vision!"
- else:
- set slot 21 of player's current inventory to eye of ender named "&aEnable Night Vision" with lore "&7Click to enable night vision!"
- if {showspectator.%player%} is true:
- set slot 23 of player's current inventory to redstone named "&cHide Spectators" with lore "&7Click to hide other spectators!"
- else:
- set slot 23 of player's current inventory to glowstone dust named "&aShow Spectators" with lore "&7Click to show other spectators!"
- if {fly.%player%} is true:
- set slot 24 of player's current inventory to feather named "&cDisable Fly" with lore "&7Click to disable always flying!"
- else:
- set slot 24 of player's current inventory to feather named "&aEnable Fly" with lore "&7Click to enable always flying!"
- on inventory click:
- if inventory name of player's current inventory is "&8Teleporter":
- if clicked slot is 0:
- close inventory of player
- teleport player to {playerid.1}
- else if clicked slot is 1:
- close inventory of player
- teleport player to {playerid.2}
- if inventory name of player's current inventory is "&8Spectator Settings":
- if clicked slot is 11:
- close inventory of player
- remove speed from player
- send "&cYou no longer have any speed effects!"
- if clicked slot is 12:
- close inventory of player
- apply speed 1 to player for 10000 seconds
- send "&aYou now have Speed I!"
- if clicked slot is 13:
- close inventory of player
- apply speed 2 to player for 10000 seconds
- send "&aYou now have Speed II!"
- if clicked slot is 14:
- close inventory of player
- apply speed 3 to player for 10000 seconds
- send "&aYou now have Speed III!"
- if clicked slot is 15:
- close inventory of player
- apply speed 4 to player for 10000 seconds
- send "&aYou now have Speed IV!"
- if clicked slot is 20:
- if {autoteleport.%player%} is false:
- close inventory of player
- set {autoteleport.%player%} to true
- send "&aOnce you select a player using your compass, it will auto teleport you to them!"
- else:
- close inventory of player
- set {autoteleport.%player%} to false
- send "&cYou will no longer auto teleport to targets!"
- if clicked slot is 21:
- if {nightvision.%player%} is true:
- close inventory of player
- set {nightvision.%player%} to false
- remove night vision from player
- send "&cYou no longer have night vision!"
- else:
- apply night vision to player for 10000 seconds
- close inventory of player
- set {nightvision.%player%} to true
- send "&aYou now have night vision!"
- if clicked slot is 23:
- {showspectator.%player%} is true:
- close inventory of player
- set {showspectator.%player%} to false
- loop all players:
- if loop-player's gamemode is adventure:
- hide loop-player to player
- send "&cYou can no longer see other spectators!"
- else:
- close inventory of player
- set {showspectator.%player%} to true
- loop all players:
- if loop-player's gamemode is adventure:
- reveal loop-player to player
- send "&aYou can now see other spectators!"
- if clicked slot is 24:
- if {fly.%player%} is true:
- close inventory of player
- set {fly.%player%} to false
- disable fly for player
- send "&cYou can no longer fly!"
- else:
- close inventory of player
- set {fly.%player%} to true
- enable fly for player
- send "&aYou can now fly!"
- on break:
- world is "arena1"
- add location of block to {broken.blocks::*}
- add type of block to {broken.type::*}
- set {ignore.locations::%location of event-block%} to true
- on place:
- world is "arena1"
- add location of block to {placed.blocks::*}
- set {ignore.locations::%location of event-block%} to true
- command /regen:
- trigger:
- loop {broken.blocks::*}:
- set {_loc} to loop-value
- set block at {_loc} to {broken.type::%loop-index%}
- loop {placed.blocks::*}:
- set {_loc} to loop-value
- set block at {_loc} to air
- delete {broken.blocks::*}
- delete {placed.blocks::*}
- delete {broken.type::*}
- delete {ignore.locations::*}
- on block form:
- world is "arena1"
- if event-block is obsidian:
- add location of event-block to {placed.blocks}
- loop all blocks in a radius 3 around event-block:
- if loop-block is cobble stone:
- add location of loop-block to {placed.blocks::*}
- on death:
- if victim is a player:
- launch ball large firework colored red and green at attacker timed 1
- launch ball large firework colored yellow and blue at attacker timed 1
- strike lightning effect at the victim
- clear drops
- set the death message to "&r"
- set {deathplayer} to victim
- wait 1 tick
- exter force respawn player
- set {end} to true
- set {playerid.1} tab name to "&7%{playerid.1}%"
- set {playerid.1}'s tag to "&7"
- set {playerid.2} tab name to "&7%{playerid.2}%"
- set {playerid.2}'s tag to "&7"
- loop all players:
- clear loop-player's inventory
- set gamemode of loop-player to adventure
- hide loop-player from all players
- allow fly for loop-player
- set slot 8 of loop-player to bed named "&c&lReturn to Lobby &r&7(Right Click)" with lore "&7Right-click to leave to the lobby!"
- set slot 0 of loop-player to compass named "&a&lTeleporter &r&7(Right Click)" with lore "&7Right-click to spectate players!"
- set slot 4 of loop-player to redstone comparator item named "&b&lSpectator Settings &r&7(Right Click)" with lore "&7Right-click to change your spectator settings!"
- broadcast "&a&l▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬"
- if {gameinvtimer.sec} < 10:
- if {mode} = "Classic":
- broadcast " &e&lClassic Duel&7 - &f&l0%{gameinvtimer.min}%:0%{gameinvtimer.sec}%"
- if {mode} = "Bow":
- broadcast " &e&lBow Duel&7 - &f&l0%{gameinvtimer.min}%:0%{gameinvtimer.sec}%"
- if {mode} = "UHC":
- broadcast " &e&lUHC Duel&7 - &f&l0%{gameinvtimer.min}%:0%{gameinvtimer.sec}%"
- if {mode} = "Op":
- broadcast " &e&lOP Duel&7 - &f&l0%{gameinvtimer.min}%:0%{gameinvtimer.sec}%"
- if {mode} = "Potion":
- broadcast " &e&lPotion Duel&7 - &f&l0%{gameinvtimer.min}%:0%{gameinvtimer.sec}%"
- else if {gameinvtimer.sec} > 10:
- if {mode} = "Classic":
- broadcast " &e&lClassic Duel&7 - &f&l0%{gameinvtimer.min}%:%{gameinvtimer.sec}%"
- if {mode} = "Bow":
- broadcast " &e&lBow Duel&7 - &f&l0%{gameinvtimer.min}%:%{gameinvtimer.sec}%"
- if {mode} = "UHC":
- broadcast " &e&lUHC Duel&7 - &f&l0%{gameinvtimer.min}%:%{gameinvtimer.sec}%"
- if {mode} = "Op":
- broadcast " &e&lOP Duel&7 - &f&l0%{gameinvtimer.min}%:%{gameinvtimer.sec}%"
- if {mode} = "Potion":
- broadcast " &e&lPotion Duel&7 - &f&l0%{gameinvtimer.min}%:%{gameinvtimer.sec}%"
- broadcast "&r"
- if {playerid.1} is attacker:
- broadcast "&r &e&LWINNER!"
- broadcast "&r &7%{playerid.1}% %{playerid.2}% "
- else if {playerid.2} is attacker:
- broadcast "&r &e&LWINNER!"
- broadcast "&r &7%{playerid.1}% %{playerid.2}% "
- broadcast "&r"
- set {hv} to health of player
- set {ha} to health of attacker
- if {hv} = 10:
- send "&r &c❤❤❤❤❤❤❤❤❤❤ &7- &a%victim%'s Health " to attacker
- else if {hv} > 10:
- send "&r &c❤❤❤❤❤❤❤❤❤❤ &7- &a%victim%'s Health " to attacker
- if {hv} = 9:
- send "&r &c❤❤❤❤❤❤❤❤❤&f❤ &7- &a%victim%'s Health " to attacker
- else if {hv} > 9:
- if {hv} < 10:
- send "&r &c❤❤❤❤❤❤❤❤❤&f❤ &7- &a%victim%'s Health " to attacker
- if {hv} = 8:
- send "&r &c❤❤❤❤❤❤❤❤&f❤❤ &7- &a%victim%'s Health " to attacker
- else if {hv} > 8:
- if {hv} < 9:
- send "&r &c❤❤❤❤❤❤❤❤&f❤❤ &7- &a%victim%'s Health " to attacker
- if {hv} = 7:
- send "&r &c❤❤❤❤❤❤❤&f❤❤❤ &7- &a%victim%'s Health " to attacker
- else if {hv} > 7:
- if {hv} < 8:
- send "&r &c❤❤❤❤❤❤❤&f❤❤❤ &7- &a%victim%'s Health " to attacker
- if {hv} = 6:
- send "&r &c❤❤❤❤❤❤&f❤❤❤❤ &7- &a%victim%'s Health " to attacker
- else if {hv} > 6:
- if {hv} < 7:
- send "&r &c❤❤❤❤❤❤&f❤❤❤❤ &7- &a%victim%'s Health " to attacker
- if {hv} = 5:
- send "&r &c❤❤❤❤❤&f❤❤❤❤❤ &7- &a%victim%'s Health " to attacker
- else if {hv} > 5:
- if {hv} < 6:
- send "&r &c❤❤❤❤❤&f❤❤❤❤❤ &7- &a%victim%'s Health " to attacker
- if {hv} = 4:
- send "&r &c❤❤❤❤&f❤❤❤❤❤❤ &7- &a%victim%'s Health " to attacker
- else if {hv} > 4:
- if {hv} < 5:
- send "&r &c❤❤❤❤&f❤❤❤❤❤❤ &7- &a%victim%'s Health " to attacker
- if {hv} = 3:
- send "&r &c❤❤❤&f❤❤❤❤❤❤❤ &7- &a%victim%'s Health " to attacker
- else if {hv} > 3:
- if {hv} < 4:
- send "&r &c❤❤❤&f❤❤❤❤❤❤❤ &7- &a%victim%'s Health " to attacker
- if {hv} = 2:
- send "&r &c❤❤&f❤❤❤❤❤❤❤❤ &7- &a%victim%'s Health " to attacker
- else if {hv} > 2:
- if {hv} < 3:
- send "&r &c❤❤&f❤❤❤❤❤❤❤❤ &7- &a%victim%'s Health " to attacker
- if {hv} = 1:
- send "&r &c❤&f❤❤❤❤❤❤❤❤❤ &7- &a%victim%'s Health " to attacker
- else if {hv} > 1:
- if {hv} < 2:
- send "&r &c❤&f❤❤❤❤❤❤❤❤❤ &7- &a%victim%'s Health " to attacker
- if {hv} = 0:
- send "&r &f❤❤❤❤❤❤❤❤❤❤ &7- &a%victim%'s Health " to attacker
- else if {hv} > 0:
- if {hv} < 1:
- send "&r &f❤❤❤❤❤❤❤❤❤❤ &7- &a%victim%'s Health " to attacker
- if {ha} = 10:
- send "&r &c❤❤❤❤❤❤❤❤❤❤ &7- &a%attacker%'s Health " to player
- else if {ha} > 10:
- send "&r &c❤❤❤❤❤❤❤❤❤❤ &7- &a%attacker%'s Health " to player
- if {ha} = 9:
- send "&r &c❤❤❤❤❤❤❤❤❤&f❤ &7- &a%attacker%'s Health " to player
- else if {ha} > 9:
- if {ha} < 10:
- send "&r &c❤❤❤❤❤❤❤❤❤&f❤ &7- &a%attacker%'s Health " to player
- if {ha} = 8:
- send "&r &c❤❤❤❤❤❤❤❤&f❤❤ &7- &a%attacker%'s Health " to player
- else if {ha} > 8:
- if {ha} < 9:
- send "&r &c❤❤❤❤❤❤❤❤&f❤❤ &7- &a%attacker%'s Health " to player
- if {ha} = 7:
- send "&r &c❤❤❤❤❤❤❤&f❤❤❤ &7- &a%attacker%'s Health " to player
- else if {ha} > 7:
- if {ha} < 8:
- send "&r &c❤❤❤❤❤❤❤&f❤❤❤ &7- &a%attacker%'s Health " to player
- if {ha} = 6:
- send "&r &c❤❤❤❤❤❤&f❤❤❤❤ &7- &a%attacker%'s Health " to player
- else if {ha} > 6:
- if {ha} < 7:
- send "&r &c❤❤❤❤❤❤&f❤❤❤❤ &7- &a%attacker%'s Health " to player
- if {ha} = 5:
- send "&r &c❤❤❤❤❤&f❤❤❤❤❤ &7- &a%attacker%'s Health " to player
- else if {ha} > 5:
- if {ha} < 6:
- send "&r &c❤❤❤❤❤&f❤❤❤❤❤ &7- &a%attacker%'s Health " to player
- if {ha} = 4:
- send "&r &c❤❤❤❤&f❤❤❤❤❤❤ &7- &a%attacker%'s Health " to player
- else if {ha} > 4:
- if {ha} < 5:
- send "&r &c❤❤❤❤&f❤❤❤❤❤❤ &7- &a%attacker%'s Health " to player
- if {ha} = 3:
- send "&r &c❤❤❤&f❤❤❤❤❤❤❤ &7- &a%attacker%'s Health " to player
- else if {ha} > 3:
- if {ha} < 4:
- send "&r &c❤❤❤&f❤❤❤❤❤❤❤ &7- &a%attacker%'s Health " to player
- if {ha} = 2:
- send "&r &c❤❤&f❤❤❤❤❤❤❤❤ &7- &a%attacker%'s Health " to player
- else if {ha} > 2:
- if {ha} < 3:
- send "&r &c❤❤&f❤❤❤❤❤❤❤❤ &7- &a%attacker%'s Health " to player
- if {ha} = 1:
- send "&r &c❤&f❤❤❤❤❤❤❤❤❤ &7- &a%attacker%'s Health " to player
- else if {ha} > 1:
- if {ha} < 2:
- send "&r &c❤&f❤❤❤❤❤❤❤❤❤ &7- &a%attacker%'s Health " to player
- if {ha} = 0:
- send "&r &f❤❤❤❤❤❤❤❤❤❤ &7- &a%attacker%'s Health " to player
- else if {ha} > 0:
- if {ha} < 1:
- send "&r &f❤❤❤❤❤❤❤❤❤❤ &7- &a%attacker%'s Health " to player
- broadcast "&r"
- broadcast "&a&l▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬"
- if {playerid.1} is attacker:
- send {playerid.1} title "&6&lVICTORY!" with subtitle "&f%{playerid.1}% won the duel!" for 6 seconds
- send {playerid.2} title "&c&lGAME OVER!" with subtitle "&f%{playerid.1}% won the duel!" for 6 seconds
- else if {playerid.2} is attacker:
- send {playerid.2} title "&6&lVICTORY!" with subtitle "&f%{playerid.2}% won the duel!" for 6 seconds
- send {playerid.1} title "&c&lGAME OVER!" with subtitle "&f%{playerid.2}% won the duel!" for 6 seconds
- delete all arrows
- extinguish player
- execute console command "/regen"
- wait 7 seconds
- loop all players:
- send loop-player to "%{hubserver}%"
- wait 1.5 second
- restart server
Advertisement
Add Comment
Please, Sign In to add comment