Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sub "sign-status":
- set {_sign.line1} to coloured value "title" get of "plugins/HypeDuels/sign.yml"
- set {_line3} to "%parameter 1%"
- set line 1 of block at {HypeDuels.Sign.Location.%{_line3}%} to "%{_sign.line1}%"
- set line 2 of block at {HypeDuels.Sign.Location.%{_line3}%} to "%{_line3}%"
- set line 3 of block at {HypeDuels.Sign.Location.%{_line3}%} to "%{HypeDuels.status.%{_line3}%}%"
- set line 4 of block at {HypeDuels.Sign.Location.%{_line3}%} to "&8( %{HypeDuels.players.%{_line3}%}%/%{HypeDuels.arena.maxplayers.%{_line3}%}% )"
- if {HypeDuels.status.%{_line3}%} is "&aWaiting":
- set block 1 behind the block at {HypeDuels.Sign.Location.%{_line3}%} to stained clay:5
- else if {HypeDuels.status.%{_line3}%} is "&cPlaying":
- set block 1 behind the block at {HypeDuels.Sign.Location.%{_line3}%} to stained clay:14
- else if {HypeDuels.status.%{_line3}%} is "&bFinishing":
- set block 1 behind the block at {HypeDuels.Sign.Location.%{_line3}%} to stained clay:4
- else if {HypeDuels.status.%{_line3}%} is "&eStarting":
- set block 1 behind the block at {HypeDuels.Sign.Location.%{_line3}%} to stained clay:9
- else if {HypeDuels.status.%{_line3}%} is "&c&lConfig..":
- set block 1 behind the block at {HypeDuels.Sign.Location.%{_line3}%} to stained clay:3
- on sign change:
- set {_sign.line1} to coloured value "title" get of "plugins/HypeDuels/sign.yml"
- set {_sign.invalid1} to coloured value "sign.invalid1" get of "plugins/HypeDuels/sign.yml"
- set {_sign.invalid2} to coloured value "sign.invalid2" get of "plugins/HypeDuels/sign.yml"
- set {_sign.invalid3} to coloured value "sign.invalid3" get of "plugins/HypeDuels/sign.yml"
- if player has permission "HypeDuels.admin" or "HypeDuels.*":
- if line 1 is "[HD]" or "[HypeDuels]":
- if line 2 is "join" or "Join":
- set {_line3} to "%line 3%"
- if {HypeDuels.arena.name.%uncolored line 3%} is set:
- set line 1 to "%{_sign.line1}%"
- set line 2 to "%uncolored line 3%"
- set line 3 to "%{HypeDuels.status.%{_line3}%}%"
- set line 4 to "&8( %{HypeDuels.players.%{_line3}%}%/%{HypeDuels.arena.maxplayers.%{_line3}%}% )"
- set {HypeDuels.Sign.Location.%{_line3}%} to event-block
- invoke "sign-status" from {_line3}
- send "&7Sign &aAdded&7!"
- else:
- set line 1 to "%{_sign.line1}%"
- set line 2 to "%{_sign.invalid1}%"
- set line 3 to "%{_sign.invalid2}%"
- set line 4 to "%{_sign.invalid3}%"
- send "&cArena doesn't exist"
- every 3 seconds: # ---> Dont Change this
- loop all players:
- if {HypeDuels.option.Scoreboard} is "true":
- if {HypeDuels.scoreboard.wait.%loop-player%} is "true":
- wipe loop-player's sidebar
- set {_line1} to coloured value "line1" get of "plugins/HypeDuels/scoreboards/waiting.yml"
- set {_line2} to coloured value "line2" get of "plugins/HypeDuels/scoreboards/waiting.yml"
- set {_line3} to coloured value "line3" get of "plugins/HypeDuels/scoreboards/waiting.yml"
- set {_line4} to coloured value "line4" get of "plugins/HypeDuels/scoreboards/waiting.yml"
- set {_line5} to coloured value "line5" get of "plugins/HypeDuels/scoreboards/waiting.yml"
- set {_line6} to coloured value "line6" get of "plugins/HypeDuels/scoreboards/waiting.yml"
- set {_line7} to coloured value "line7" get of "plugins/HypeDuels/scoreboards/waiting.yml"
- set {_line8} to coloured value "line8" get of "plugins/HypeDuels/scoreboards/waiting.yml"
- set {_line9} to coloured value "line9" get of "plugins/HypeDuels/scoreboards/waiting.yml"
- replace all "[players]" with "%{HypeDuels.players.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line1}
- replace all "[maxplayers]" with "%{HypeDuels.arena.maxplayers.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line1}
- replace all "[playername]" with "%loop-player%" in {_line1}
- replace all "[status]" with "%{HypeDuels.status.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line1}
- replace all "[playerping]" with "%loop-player's ping%" in {_line1}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line1}
- replace all "[players]" with "%{HypeDuels.players.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line2}
- replace all "[maxplayers]" with "%{HypeDuels.arena.maxplayers.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line2}
- replace all "[playername]" with "%loop-player%" in {_line2}
- replace all "[status]" with "%{HypeDuels.status.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line2}
- replace all "[playerping]" with "%loop-player's ping%" in {_line2}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line2}
- replace all "[players]" with "%{HypeDuels.players.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line3}
- replace all "[maxplayers]" with "%{HypeDuels.arena.maxplayers.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line3}
- replace all "[playername]" with "%loop-player%" in {_line3}
- replace all "[status]" with "%{HypeDuels.status.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line3}
- replace all "[playerping]" with "%loop-player's ping%" in {_line3}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line3}
- replace all "[players]" with "%{HypeDuels.players.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line4}
- replace all "[maxplayers]" with "%{HypeDuels.arena.maxplayers.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line4}
- replace all "[playername]" with "%loop-player%" in {_line4}
- replace all "[status]" with "%{HypeDuels.status.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line4}
- replace all "[playerping]" with "%loop-player's ping%" in {_line4}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line4}
- replace all "[players]" with "%{HypeDuels.players.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line5}
- replace all "[maxplayers]" with "%{HypeDuels.arena.maxplayers.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line5}
- replace all "[playername]" with "%loop-player%" in {_line5}
- replace all "[status]" with "%{HypeDuels.status.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line5}
- replace all "[playerping]" with "%loop-player's ping%" in {_line5}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line5}
- replace all "[players]" with "%{HypeDuels.players.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line6}
- replace all "[maxplayers]" with "%{HypeDuels.arena.maxplayers.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line6}
- replace all "[playername]" with "%loop-player%" in {_line6}
- replace all "[status]" with "%{HypeDuels.status.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line6}
- replace all "[playerping]" with "%loop-player's ping%" in {_line6}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line6}
- replace all "[players]" with "%{HypeDuels.players.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line7}
- replace all "[maxplayers]" with "%{HypeDuels.arena.maxplayers.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line7}
- replace all "[playername]" with "%loop-player%" in {_line7}
- replace all "[status]" with "%{HypeDuels.status.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line7}
- replace all "[playerping]" with "%loop-player's ping%" in {_line7}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line7}
- replace all "[players]" with "%{HypeDuels.players.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line8}
- replace all "[maxplayers]" with "%{HypeDuels.arena.maxplayers.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line8}
- replace all "[playername]" with "%loop-player%" in {_line8}
- replace all "[status]" with "%{HypeDuels.status.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line8}
- replace all "[playerping]" with "%loop-player's ping%" in {_line8}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line8}
- replace all "[players]" with "%{HypeDuels.players.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line9}
- replace all "[maxplayers]" with "%{HypeDuels.arena.maxplayers.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line9}
- replace all "[playername]" with "%loop-player%" in {_line9}
- replace all "[status]" with "%{HypeDuels.status.%{HypeDuels.player.arena.%loop-player%}%}%" in {_line9}
- replace all "[playerping]" with "%loop-player's ping%" in {_line9}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line9}
- set name of sidebar of loop-player to "&e&l%{HypeDuels.option.ServerName}%"
- set score "%{_line1}%" in sidebar of loop-player to 10
- set score "%{_line2}%" in sidebar of loop-player to 9
- set score "%{_line3}%" in sidebar of loop-player to 8
- set score "%{_line4}%" in sidebar of loop-player to 7
- set score "%{_line5}%" in sidebar of loop-player to 6
- set score "%{_line6}%" in sidebar of loop-player to 5
- set score "%{_line7}%" in sidebar of loop-player to 4
- set score "%{_line8}%" in sidebar of loop-player to 3
- set score "%{_line9}%" in sidebar of loop-player to 2
- set score "%{HypeDuels.option.ServerIP}%" in sidebar of loop-player to 1
- else if {HypeDuels.scoreboard.playing.%loop-player%} is "true":
- set {_line1} to coloured value "line1" get of "plugins/HypeDuels/scoreboards/playing.yml"
- set {_line2} to coloured value "line2" get of "plugins/HypeDuels/scoreboards/playing.yml"
- set {_line3} to coloured value "line3" get of "plugins/HypeDuels/scoreboards/playing.yml"
- set {_line4} to coloured value "line4" get of "plugins/HypeDuels/scoreboards/playing.yml"
- set {_line5} to coloured value "line5" get of "plugins/HypeDuels/scoreboards/playing.yml"
- set {_line6} to coloured value "line6" get of "plugins/HypeDuels/scoreboards/playing.yml"
- set {_line7} to coloured value "line7" get of "plugins/HypeDuels/scoreboards/playing.yml"
- set {_line8} to coloured value "line8" get of "plugins/HypeDuels/scoreboards/playing.yml"
- set {_line9} to coloured value "line9" get of "plugins/HypeDuels/scoreboards/playing.yml"
- replace all "[kills]" with "%{HypeDuels.player.kills.%loop-player%}%" in {_line1}
- replace all "[deaths]" with "%{HypeDuels.player.deaths.%loop-player%}%" in {_line1}
- replace all "[wins]" with "%{HypeDuels.player.wins.%loop-player%}%" in {_line1}
- replace all "[playername]" with "%loop-player%" in {_line1}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line1}
- replace all "[kills]" with "%{HypeDuels.player.kills.%loop-player%}%" in {_line8}
- replace all "[deaths]" with "%{HypeDuels.player.deaths.%loop-player%}%" in {_line8}
- replace all "[wins]" with "%{HypeDuels.player.wins.%loop-player%}%" in {_line8}
- replace all "[playername]" with "%loop-player%" in {_line8}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line8}
- replace all "[kills]" with "%{HypeDuels.player.kills.%loop-player%}%" in {_line2}
- replace all "[deaths]" with "%{HypeDuels.player.deaths.%loop-player%}%" in {_line2}
- replace all "[wins]" with "%{HypeDuels.player.wins.%loop-player%}%" in {_line2}
- replace all "[playername]" with "%loop-player%" in {_line2}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line2}
- replace all "[kills]" with "%{HypeDuels.player.kills.%loop-player%}%" in {_line3}
- replace all "[deaths]" with "%{HypeDuels.player.deaths.%loop-player%}%" in {_line3}
- replace all "[wins]" with "%{HypeDuels.player.wins.%loop-player%}%" in {_line3}
- replace all "[playername]" with "%loop-player%" in {_line3}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line3}
- replace all "[kills]" with "%{HypeDuels.player.kills.%loop-player%}%" in {_line4}
- replace all "[deaths]" with "%{HypeDuels.player.deaths.%loop-player%}%" in {_line4}
- replace all "[wins]" with "%{HypeDuels.player.wins.%loop-player%}%" in {_line4}
- replace all "[playername]" with "%loop-player%" in {_line4}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line4}
- replace all "[kills]" with "%{HypeDuels.player.kills.%loop-player%}%" in {_line5}
- replace all "[deaths]" with "%{HypeDuels.player.deaths.%loop-player%}%" in {_line5}
- replace all "[wins]" with "%{HypeDuels.player.wins.%loop-player%}%" in {_line5}
- replace all "[playername]" with "%loop-player%" in {_line5}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line5}
- replace all "[kills]" with "%{HypeDuels.player.kills.%loop-player%}%" in {_line9}
- replace all "[deaths]" with "%{HypeDuels.player.deaths.%loop-player%}%" in {_line9}
- replace all "[wins]" with "%{HypeDuels.player.wins.%loop-player%}%" in {_line9}
- replace all "[playername]" with "%loop-player%" in {_line9}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line9}
- replace all "[kills]" with "%{HypeDuels.player.kills.%loop-player%}%" in {_line6}
- replace all "[deaths]" with "%{HypeDuels.player.deaths.%loop-player%}%" in {_line6}
- replace all "[wins]" with "%{HypeDuels.player.wins.%loop-player%}%" in {_line6}
- replace all "[playername]" with "%loop-player%" in {_line6}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line6}
- replace all "[kills]" with "%{HypeDuels.player.kills.%loop-player%}%" in {_line7}
- replace all "[deaths]" with "%{HypeDuels.player.deaths.%loop-player%}%" in {_line7}
- replace all "[wins]" with "%{HypeDuels.player.wins.%loop-player%}%" in {_line7}
- replace all "[playername]" with "%loop-player%" in {_line7}
- replace all "[arena]" with "%{HypeDuels.player.arena.%loop-player%}%" in {_line7}
- set name of sidebar of loop-player to "&e&l%{HypeDuels.option.ServerName}%"
- set score "%{_line1}%" in sidebar of loop-player to 10
- set score "%{_line2}%" in sidebar of loop-player to 9
- set score "%{_line3}%" in sidebar of loop-player to 8
- set score "%{_line4}%" in sidebar of loop-player to 7
- set score "%{_line5}%" in sidebar of loop-player to 6
- set score "%{_line6}%" in sidebar of loop-player to 5
- set score "%{_line7}%" in sidebar of loop-player to 4
- set score "%{_line8}%" in sidebar of loop-player to 3
- set score "%{_line9}%" in sidebar of loop-player to 2
- set score "%{HypeDuels.option.ServerIP}%" in sidebar of loop-player to 1
- every minute:
- set {_holo} to coloured value "Hologram" get of "plugins/HypeDuels/Hologram.yml"
- replace all "<newline>" with ";" in {_holo}
- replace all "<nl>" with ";" in {_holo}
- replace all "<newl>" with ";" in {_holo}
- replace all "<nline>" with ";" in {_holo}
- replace all "<placeholder-nl>" with ";" in {_holo}
- loop all players:
- if {HypeDuels.option.holo.location} is set:
- replace all "<kills>" with "%{HypeDuels.player.kills.%loop-player%}%" in {_holo}
- replace all "<deaths>" with "%{HypeDuels.player.deaths.%loop-player%}%" in {_holo}
- replace all "<wins>" with "%{HypeDuels.player.wins.%loop-player%}%" in {_holo}
- replace all "<rank>" with "%loop-player's prefix%" in {_holo}
- create hologram "%{_holo}%" at {HypeDuels.option.holo.location} for 59 seconds
- else:
- send "%{HypeDuels.Prefix}% &cSet holo location" to console
- on join:
- if {HypeDuels.player.kills.%player%} is not set:
- set {HypeDuels.player.kills.%player%} to 0
- if {HypeDuels.player.wins.%player%} is not set:
- set {HypeDuels.player.wins.%player%} to 0
- if {HypeDuels.player.deaths.%player%} is not set:
- set {HypeDuels.player.deaths.%player%} to 0
- on death of a player:
- attacker is a player
- victim is a player
- clear drops
- if {HypeDuels.player.playing.%victim%} is "true":
- launch creeper firework colored green at attacker timed 1
- wait 0.35 seconds
- launch creeper firework colored red at attacker timed 2
- wait 0.35 seconds
- launch creeper firework colored blue at attacker timed 3
- add 1 to {HypeDuels.player.deaths.%victim%}
- add 1 to {HypeDuels.player.kills.%attacker%}
- add 1 to {HypeDuels.player.wins.%attacker%}
- on teleport:
- if {HypeDuels.option.pwtl} is true:
- loop all players:
- if loop-player's world is player's world:
- reveal player from loop-player
- else:
- hide player from loop-player
- hide loop-player from player
- on right-click on sign:
- if line 1 is "&lHypeDuels":
- make player execute the command "/hypeduels join %line 2%"
- stop
- else:
- stop
- on load:
- if file "plugins/HypeDuels/scoreboards/waiting.yml" doesn't exists:
- create file "plugins/HypeDuels/waiting.yml"
- send "&9[HypeDuels]&a Creating waiting configuration File" to console
- wf "##=====================================================================##" to "plugins/HypeDuels/waiting.yml"
- wf "## ##" to "plugins/HypeDuels/waiting.yml"
- wf "##=====================================================================##" to "plugins/HypeDuels/waiting.yml"
- wf "## ##" to "plugins/HypeDuels/waiting.yml"
- wf "## HypeDuels ##" to "plugins/HypeDuels/waiting.yml"
- wf "## Version 1.0.9 ##" to "plugins/HypeDuels/waiting.yml"
- wf "## Stats , Scoreboard and more ##" to "plugins/HypeDuels/waiting.yml"
- wf "## ##" to "plugins/HypeDuels/waiting.yml"
- wf "##=====================================================================##" to "plugins/HypeDuels/waiting.yml"
- wf "## ##" to "plugins/HypeDuels/waiting.yml"
- wf "##=====================================================================##" to "plugins/HypeDuels/waiting.yml"
- wf " " to "plugins/HypeDuels/waiting.yml"
- set "Line1" to "&a" in yaml file "plugins/HypeDuels/waiting.yml"
- set "Line2" to "&fMap:" in yaml file "plugins/HypeDuels/waiting.yml"
- set "Line3" to "&c [arena]" in yaml file "plugins/HypeDuels/waiting.yml"
- set "Line4" to "&a" in yaml file "plugins/HypeDuels/waiting.yml"
- set "Line5" to "&fPlayers:" in yaml file "plugins/HypeDuels/waiting.yml"
- set "Line6" to "&b( &e[players] &b/ &e[maxplayers]&b)" in yaml file "plugins/HypeDuels/waiting.yml"
- set "Line7" to "&a" in yaml file "plugins/HypeDuels/waiting.yml"
- set "Line8" to "&fYour Name: &a[playername]" in yaml file "plugins/HypeDuels/waiting.yml"
- set "Line9" to "&a" in yaml file "plugins/HypeDuels/waiting.yml"
- wf " " to "plugins/HypeDuels/waiting.yml"
- if file "plugins/HypeDuels/playing.yml" doesn't exists:
- create file "plugins/HypeDuels/playing.yml"
- send "&9[HypeDuels]&a Creating playing configuration File" to console
- wf "##=====================================================================##" to "plugins/HypeDuels/playing.yml"
- wf "## ##" to "plugins/HypeDuels/playing.yml"
- wf "##=====================================================================##" to "plugins/HypeDuels/playing.yml"
- wf "## ##" to "plugins/HypeDuels/playing.yml"
- wf "## HypeDuels ##" to "plugins/HypeDuels/playing.yml"
- wf "## Version 1.0.9 ##" to "plugins/HypeDuels/playing.yml"
- wf "## Stats , Scoreboard and more ##" to "plugins/HypeDuels/playing.yml"
- wf "## ##" to "plugins/HypeDuels/playing.yml"
- wf "##=====================================================================##" to "plugins/HypeDuels/playing.yml"
- wf "## ##" to "plugins/HypeDuels/playing.yml"
- wf "##=====================================================================##" to "plugins/HypeDuels/playing.yml"
- wf " " to "plugins/HypeDuels/playing.yml"
- set "Line1" to "&a" in yaml file "plugins/HypeDuels/playing.yml"
- set "Line2" to "&fMap:" in yaml file "plugins/HypeDuels/playing.yml"
- set "Line3" to "&b [arena]" in yaml file "plugins/HypeDuels/playing.yml"
- set "Line4" to "&a" in yaml file "plugins/HypeDuels/playing.yml"
- set "Line5" to "&fWins: &e[wins]" in yaml file "plugins/HypeDuels/playing.yml"
- set "Line6" to "&fDeaths: &c[deaths]" in yaml file "plugins/HypeDuels/playing.yml"
- set "Line7" to "&a" in yaml file "plugins/HypeDuels/playing.yml"
- set "Line8" to "&fKills: &a[kills]" in yaml file "plugins/HypeDuels/playing.yml"
- set "Line9" to "&a" in yaml file "plugins/HypeDuels/playing.yml"
- wf " " to "plugins/HypeDuels/playing.yml"
- if file "plugins/HypeDuels/Hologram.yml" doesn't exists:
- create file "plugins/HypeDuels/Hologram.yml"
- send "&9[HypeDuels]&a Creating playing configuration File" to console
- wf "##=====================================================================##" to "plugins/HypeDuels/Hologram.yml"
- wf "## ##" to "plugins/HypeDuels/Hologram.yml"
- wf "##=====================================================================##" to "plugins/HypeDuels/Hologram.yml"
- wf "## ##" to "plugins/HypeDuels/Hologram.yml"
- wf "## HypeDuels ##" to "plugins/HypeDuels/Hologram.yml"
- wf "## Version 1.0.9 ##" to "plugins/HypeDuels/Hologram.yml"
- wf "## Stats , Scoreboard and more ##" to "plugins/HypeDuels/Hologram.yml"
- wf "## ##" to "plugins/HypeDuels/Hologram.yml"
- wf "##=====================================================================##" to "plugins/HypeDuels/Hologram.yml"
- wf "## ##" to "plugins/HypeDuels/Hologram.yml"
- wf "##=====================================================================##" to "plugins/HypeDuels/Hologram.yml"
- wf " " to "plugins/HypeDuels/Hologram.yml"
- wf "Hologram: '&e&lHYPEDUELS<nl>&a<nl>&eKills &f<kills> <nl>&eDeaths <deaths> <nl>&eWins &f<wins> <nl> &eYour Rank &f<rank> <nl> &6play.servername.net'" to "plugins/HypeDuels/Hologram.yml"
- wf " " to "plugins/HypeDuels/Hologram.yml"
- if file "plugins/HypeDuels/sign.yml" doesn't exists:
- create file "plugins/HypeDuels/sign.yml"
- send "&9[HypeDuels]&a Creating playing configuration File" to console
- wf "##=====================================================================##" to "plugins/HypeDuels/sign.yml"
- wf "## ##" to "plugins/HypeDuels/sign.yml"
- wf "##=====================================================================##" to "plugins/HypeDuels/sign.yml"
- wf "## ##" to "plugins/HypeDuels/sign.yml"
- wf "## HypeDuels ##" to "plugins/HypeDuels/sign.yml"
- wf "## Version 1.0.9 ##" to "plugins/HypeDuels/sign.yml"
- wf "## Stats , Scoreboard and more ##" to "plugins/HypeDuels/sign.yml"
- wf "## ##" to "plugins/HypeDuels/sign.yml"
- wf "##=====================================================================##" to "plugins/HypeDuels/sign.yml"
- wf "## ##" to "plugins/HypeDuels/sign.yml"
- wf "##=====================================================================##" to "plugins/HypeDuels/sign.yml"
- wf " " to "plugins/HypeDuels/sign.yml"
- wf "Title: '&0&lHYPE DUELS'" to "plugins/HypeDuels/sign.yml"
- wf "sign.invalid1: '&cThis Map'" to "plugins/HypeDuels/sign.yml"
- wf "sign.invalid2: '&cDont Exist'" to "plugins/HypeDuels/sign.yml"
- wf "sign.invalid3: '&4( 0 / 0 )'" to "plugins/HypeDuels/sign.yml"
- wf " " to "plugins/HypeDuels/sign.yml"
- if file "plugins/HypeDuels/config.yml" doesn't exists:
- create file "plugins/HypeDuels/config.yml"
- send "&9[HypeDuels]&a Creating Configuration File" to console
- wf "##=====================================================================##" to "plugins/HypeDuels/config.yml"
- wf "## ##" to "plugins/HypeDuels/config.yml"
- wf "##=====================================================================##" to "plugins/HypeDuels/config.yml"
- wf "## ##" to "plugins/HypeDuels/config.yml"
- wf "## HypeDuels ##" to "plugins/HypeDuels/config.yml"
- wf "## Version 1.0.9 ##" to "plugins/HypeDuels/config.yml"
- wf "## Stats , Scoreboard and more ##" to "plugins/HypeDuels/config.yml"
- wf "## ##" to "plugins/HypeDuels/config.yml"
- wf "##=====================================================================##" to "plugins/HypeDuels/config.yml"
- wf "## ##" to "plugins/HypeDuels/config.yml"
- wf "##=====================================================================##" to "plugins/HypeDuels/config.yml"
- wf " " to "plugins/HypeDuels/config.yml"
- wf "Scoreboard: true" to "plugins/HypeDuels/config.yml"
- wf "ServerName: 'HypeDuels'" to "plugins/HypeDuels/config.yml"
- wf "ServerIP: 'mc.spigotmc.org'" to "plugins/HypeDuels/config.yml"
- wf "Prefix: '&a[HypeDuels] &r'" to "plugins/HypeDuels/config.yml"
- wf "PerWorldTabList: true" to "plugins/HypeDuels/config.yml"
- wf " " to "plugins/HypeDuels/config.yml"
- if file "plugins/HypeDuels/Game-messages.yml" doesn't exists:
- create file "plugins/HypeDuels/Game-messages.yml"
- send "&9[HypeDuels]&a Creating Game Messages File" to console
- set "Join" to "&7<player> &ejoined the game (&b<players>&e/&b<max>&e)" in yaml file "plugins/HypeDuels/messages/messages.yml"
- set "Leave" to "&7<player> &equit the game (&b<players>&e/&b<max>&e)" in yaml file "plugins/HypeDuels/messages/messages.yml"
- set "LeaveInGame" to "&7<player> &equit the game" in yaml file "plugins/HypeDuels/messages/messages.yml"
- set "StartingGame" to "&eThe game starting in &6<time>&e seconds" in yaml file "plugins/HypeDuels/messages/messages.yml"
- set "Players" to "&cNeed more players for start game" in yaml file "plugins/HypeDuels/messages/messages.yml"
- add " &a&l[x][x][x] &e&lHypeDuels &a&l[x][x][x]" to yaml list "Win" from file "../../HypeDuels/Game-messages.yml"
- add " &a" to yaml list "Messages.Win" from file "../../HypeDuels/Game-messages.yml"
- add " &b - &6&lWinner &7<first>" to yaml list "Messages.Win" from file "../../HypeDuels/Game-messages.yml"
- add " &b - &c&lLoser &7<second>" to yaml list "Messages.Win" from file "../../HypeDuels/Game-messages.yml"
- add " &a" to yaml list "Messages.Win" from file "../../HypeDuels/Game-messages.yml"
- add " &b - &a+<coins> coins" to yaml list "Messages.Win" from file "../../HypeDuels/Game-messages.yml"
- add " &a" to yaml list "Messages.Win" from file "../../HypeDuels/Game-messages.yml"
- add " &a&l[x][x][x] &e&lHypeDuels &a&l[x][x][x]" to yaml list "Messages.Win" from file "../../HypeDuels/Game-messages.yml"
- add " &a&lVICTORY" to yaml list "Title.Title" from file "../../HypeDuels/Game-messages.yml"
- add " &fThanks for play" to yaml list "Title.Subtitle" from file "../../HypeDuels/Game-messages.yml"
- set {HypeDuels.option.Title::*} to yaml list "Title.Title" from file "../../HypeDuels/Game-messages.yml"
- set {HypeDuels.option.SubTitle::*} to yaml list "Title.Subtitle" from file "../../HypeDuels/Game-messages.yml"
- set {HypeDuels.option.WinMsg::*} to yaml list "Messages.Win" from file "../../HypeDuels/Game-messages.yml"
- set {HypeDuels.option.ServerName} to coloured value "ServerName" get of "plugins/HypeDuels/config.yml"
- set {HypeDuels.option.ServerIP} to coloured value "ServerIP" get of "plugins/HypeDuels/config.yml"
- set {HypeDuels.option.Scoreboard} to coloured value "Scoreboard" get of "plugins/HypeDuels/config.yml"
- set {HypeDuels.option.pwtl} to coloured value "PerWorldTabList" get of "plugins/HypeDuels/config.yml"
- on load:
- set {_prefix} to coloured value "Prefix" get of "plugins/HypeDuels/config.yml"
- send "%{_prefix}% &bLoaded in version &e1.0.9" to console
- command /HypeDuels [<text>] [<text>]:
- Aliases: /hd
- trigger:
- if arg-1 is not set:
- if player has permission "hypeduels.admin":
- send " "
- send " "
- send "&6&m------------------"
- send "&cAdmin Commands&5:"
- send " &e/HypeDuels create <arena>&7 add a map" #finished
- send " &e/HypeDuels delete <arena>&7 remove a map" #do not finished
- send " &e/HypeDuels addspawn <arena>&7 Add Player Spawns" #finished
- send " &e/HypeDuels setpost1 <arena>&7 Set arena post1" #finished
- send " &e/HypeDuels setpost2 <arena>&7 Set arena post2" #finished
- send " &e/HypeDuels save <arena>&7 Enable and save arena" #finished
- send " &e/HypeDuels list&7 List of maps" #finished
- send " &e/HypeDuels Reload&7 List of reload commands" #finished
- send " &e/HypeDuels options&7 View all options" #finished
- send "&e /HypeDuels info <arena>&7 View arena info" #semifinished
- send "&6&m------------------"
- send " "
- else:
- send " "
- send " "
- send "&6&m------------------"
- send "&cAdmin Commands&5:"
- send " &e/HypeDuels join <arena>&7 add a map"
- send " &e/HypeDuels leave Leave from a map"
- send " &e/HypeDuels list&7 List of maps"
- send " &e/HypeDuels stats <player>&7 Player Stats"
- send "&6&m------------------"
- send " "
- if arg-1 is "info":
- if arg-2 is set:
- if player has permission "hypeduels.admin":
- send "%{HypeDuels.Prefix}% &fSoon in version&8: &6&l2.0"
- if arg-1 is "options":
- if player has permission "hypeduels.admin":
- send "%{HypeDuels.Prefix}% &fSoon in version&8: &6&l2.0"
- if arg-1 is "create":
- if arg-2 is set:
- if player has permission "hypeduels.admin":
- if {HypeDuels.arena.name.%arg-2%} is not set:
- send "&6&m------------------"
- send " &eCreating arena &725%%"
- set {HypeDuels.arena.name.%arg-2%} to false
- wait 1 second
- send " &eCreating arena &750%%"
- set {HypeDuels.arena.status.%arg-2%} to "Config"
- set {HypeDuels.game.minplayers.%arg-2%} to 2
- wait 1 second
- send " &eCreating arena &775%%"
- set {HypeDuels.arena.creator.%arg-2%} to "%player%"
- set {HypeDuels.arena.maxplayers.%arg-2%} to 2
- wait 1 second
- send " &eCreating arena &7100%%"
- set {HypeDuels.arena.date.%arg-2%} to "%now%"
- add arg-2 to {HypeDuels-Arenas::*}
- send " &eFinished"
- send "&6&m------------------"
- else:
- send "&6&m------------------"
- send " &eArena Already &7Created"
- send "&6&m------------------"
- else:
- send "&6&m------------------"
- send " &eNeed Permission &7hypeduels.admin"
- send "&6&m------------------"
- else:
- send "&6&m------------------"
- send " &eType &7/hypeduels create (arena name)"
- send "&6&m------------------"
- if arg-1 is "addspawn":
- if arg-2 is set:
- if player has permission "hypeduels.admin":
- if {HypeDuels.arena.name.%arg-2%} is false:
- add 1 to {HypeDuels.spawn.id.%arg-2%}
- send "&6&m------------------"
- send " &eSpawn Added NΒΊ&7%{HypeDuels.spawn.id.%arg-2%}%"
- send "&6&m------------------"
- set {HypeDuels.player.spawn.%{HypeDuels.spawn.id.%arg-2%}%.%arg-2%} to location of player
- else:
- send "&6&m------------------"
- send " &eSet EditMode to &ATrue&e or arena doesn't exist"
- send "&6&m------------------"
- else:
- send "&6&m------------------"
- send " &eNeed Permission &7hypeduels.admin"
- send "&6&m------------------"
- else:
- send "&6&m------------------"
- send " &eType &7/hypeduels addspawn (arena name)"
- send "&6&m------------------"
- if arg-1 is "setpost1":
- if arg-2 is set:
- if player has permission "hypeduels.admin":
- if {HypeDuels.arena.name.%arg-2%} is false:
- set {HypeDuels.positions.1.%arg-2%} to location of player
- send "&6&m------------------"
- send " &ePost1 Seted in &f%{HypeDuels.positions.1.%arg-2%}%"
- send "&6&m------------------"
- if arg-1 is "setpost2":
- if arg-2 is set:
- if player has permission "hypeduels.admin":
- if {HypeDuels.arena.name.%arg-2%} is false:
- set {HypeDuels.positions.2.%arg-2%} to location of player
- send "&6&m------------------"
- send " &ePost2 Seted in &f%{HypeDuels.positions.2.%arg-2%}%"
- send "&6&m------------------"
- if arg-1 is "setlobby":
- if arg-2 is set:
- if player has permission "hypeduels.admin":
- if {HypeDuels.arena.name.%arg-2%} is false:
- set {HypeDuels.lobby.%arg-2%} to location of player
- send "&6&m------------------"
- send " &eLobby Seted in &f%{HypeDuels.positions.2.%arg-2%}%"
- send "&6&m------------------"
- if arg-1 is "delete":
- if arg-2 is set:
- if player has permission "hypeduels.admin":
- if {HypeDuels.arena.name.%arg-2%} is set:
- clear {HypeDuels.arena.maxplayers.%arg-2%}
- clear {HypeDuels.lobby.%arg-2%}
- clear {HypeDuels.positions.1.%arg-2%}
- clear {HypeDuels.positions.2.%arg-2%}
- clear {HypeDuels.game.%arg 2%.saved}
- clear {HypeDuels.status.%arg 2%}
- Clear {HypeDuels.players.%arg-2%}
- clear {HypeDuels.game.%arg 2%.run}
- clear {HypeDuels.game.%arg 2%.seconds.1}
- clear {HypeDuels.game.%arg 2%.seconds.2}
- clear {HypeDuels.game.%arg 2%.saving}
- set {HypeDuels.spawn.id.%arg-2%} to 0
- send "&aArena Removed"
- if arg-1 is "save":
- if arg-2 is set:
- if player has permission "hypeduels.admin":
- if {HypeDuels.arena.name.%arg-2%} is false:
- send "&6&m------------------"
- send " &eSaving arena &f%arg-2%"
- send "&6&m------------------"
- if {HypeDuels.lobby.%arg-2%} is set:
- if {HypeDuels.arena.maxplayers.%arg-2%} is set:
- if {HypeDuels.positions.1.%arg-2%} is set:
- if {HypeDuels.positions.2.%arg-2%} is set:
- set {HypeDuels.game.%arg 2%.saving} to true
- set {HypeDuels.game.%arg 2%.saved} to true
- send "&7Saving &a%arg-2%&7.. &d&lENABLING SAVING MODE"
- set {HypeDuels.game.%arg 2%.lag} to 0
- set {HypeDuels.game.%arg 2%.total} to 0
- set {HypeDuels.game.%arg 2%.blocks} to 0
- wait 10 ticks
- loop blocks within {HypeDuels.positions.1.%arg 2%} to {HypeDuels.positions.2.%arg 2%}:
- if loop-block is not air:
- add 1 to {HypeDuels.%arg 2%.total}
- loop blocks within {HypeDuels.positions.1.%arg 2%} to {HypeDuels.positions.2.%arg 2%}:
- if loop-block is not air:
- set {HypeDuels.game.%arg 2%.blocks::%location of loop-block%} to type of block at loop-block
- add 1 to {HypeDuels.%arg 2%.blocks}
- add 1 to {HypeDuels.%arg 2%.lag}
- set action bar of player to "&6&m---&f Saving &e&l%arg 2% &b(&e%{HypeDuels.%arg 2%.blocks}%&b/&e%{HypeDuels.%arg 2%.total}%&b)"
- if {HypeDuels.game.%arg 2%.lag} = 500:
- set {HypeDuels.game.%arg 2%.lag} to 0
- wait 2 seconds
- chance of 50%:
- wait 1 second
- else:
- wait 0.5 second
- send "&7Arena of 1vs1 Saved &a%arg 2%&6! &d&lDISABLING SAVING MODE"
- set {HypeDuels.game.%arg 2%.saved} to true
- set {HypeDuels.status.%arg 2%} to "&aWaiting"
- set {HypeDuels.players.%arg-2%} to 0
- set {HypeDuels.game.%arg 2%.run} to false
- set {HypeDuels.game.%arg 2%.seconds.1} to 5
- set {HypeDuels.game.%arg 2%.seconds.2} to 20
- set {HypeDuels.game.%arg 2%.saving} to false
- invoke "sign-status" from arg-2
- stop
- else:
- send "&eNeed Position 2"
- else:
- send "&eNeed Position 1"
- else:
- send "&eNeed MaxPlayers"
- else:
- send "&eNeed Lobby"
- if arg-1 is "join":
- if arg-2 is set:
- if {HypeDuels.player.playing.%player%} is false:
- if {HypeDuels.arena.name.%arg-2%} is set:
- if {HypeDuels.status.%arg-2%} is "&aWaiting":
- add player to {HypeDuels.arena.lives.%arg-2%::*}
- set {HypeDuels.scoreboard.wait.%player%} to true
- set {HypeDuels.player.arena.%player%} to "%arg-2%"
- set {HypeDuels.player.playing.%player%} to true
- add 1 to {HypeDuels.players.%arg-2%}
- teleport player to {HypeDuels.lobby.%arg-2%}
- invoke "sign-status" from arg-2
- set player's gamemode to survival
- clear player's inventory
- set slot 0 of player to diamond sword of sharpness 3 named "&a&lHype Sword"
- set slot 1 of player to bow of power 3
- set slot 2 of player to fishing rod
- set slot 3 of player to 6 golden apple named "&e&lHypeDuels"
- set slot 4 of player to 3 golden apple named "&e&lGood Lucky"
- set slot 5 of player to 64 cooked beef
- set slot 8 of player to 64 arrow
- set helmet of player to diamond helmet of protection 3
- set chestplate of player to diamond chestplate of projectile protection 3
- set leggings of player to diamond leggings of projectile protection 3
- set boots of player to diamond boots of protection 3
- play raw sound "note.pling" at player with pitch 1 volume 10
- set {_jarena} to coloured value "Join" get of "plugins/HypeDuels/messages/messages.yml"
- set {_joincmd} to "%{_jarena}%"
- replace all "<player>" with "%player%" in {_joincmd}
- replace all "<rank>" with "%player's prefix%" in {_joincmd}
- replace all "<players>" with "%{HypeDuels.players.%arg-2%}%" in {_joincmd}
- replace all "<max>" with "2" in {_joincmd}
- send "%coloured {_joincmd}%" to {HypeDuels.arena.lives.%arg-2%::*}
- if {HypeDuels.players.%arg-2%} is 2:
- set {HypeDuels.status.%arg-2%} to "&eStarting"
- invoke "sign-status" from arg-2
- set {HypeDuels.scoreboard.wait.%player%} to true
- loop all players:
- if {HypeDuels.player.arena.%loop-player%} is "%arg-2%":
- make loop-player execute command "/hypeduels jtpdldedasd"
- set {HypeDuels.movehere.%loop-player%} to true
- loop {HypeDuels.option.TimeStarting::*}:
- set {_timestart} to "%loop-value%"
- replace all "<time>" with "%{HypeDuels.TimeStarting.arena.%arg-2%}%" in {_timestart}
- set {HypeDuels.TimeStarting.arena.%arg-2%} to 10
- send " %{_timestart}%" to {HypeDuels.arena.lives.%arg-2%::*}
- send {HypeDuels.arena.lives.%arg-2%::*} title "&e&lStarting in" with subtitle "&f10 Second(s)" for 1 seconds
- remove 5 from {HypeDuels.TimeStarting.arena.%arg-2%}
- wait 5 seconds
- send {HypeDuels.arena.lives.%arg-2%::*} title "&a&l5" with subtitle "&f" for 1 seconds
- send " %{_timestart}%" to {HypeDuels.arena.lives.%arg-2%::*}
- remove 1 from {HypeDuels.TimeStarting.arena.%arg-2%}
- wait 1 seconds
- send {HypeDuels.arena.lives.%arg-2%::*} title "&2&l4" with subtitle "&f" for 1 seconds
- send " %{_timestart}%" to {HypeDuels.arena.lives.%arg-2%::*}
- remove 1 from {HypeDuels.TimeStarting.arena.%arg-2%}
- wait 1 seconds
- send {HypeDuels.arena.lives.%arg-2%::*} title "&f&l3" with subtitle "&f" for 1 seconds
- send " %{_timestart}%" to {HypeDuels.arena.lives.%arg-2%::*}
- remove 1 from {HypeDuels.TimeStarting.arena.%arg-2%}
- wait 1 seconds
- send {HypeDuels.arena.lives.%arg-2%::*} title "&5&l2" with subtitle "&f" for 1 seconds
- send " %{_timestart}%" to {HypeDuels.arena.lives.%arg-2%::*}
- remove 1 from {HypeDuels.TimeStarting.arena.%arg-2%}
- wait 1 seconds
- send {HypeDuels.arena.lives.%arg-2%::*} title "&4&l1" with subtitle "&f" for 1 seconds
- send " %{_timestart}%" to {HypeDuels.arena.lives.%arg-2%::*}
- remove 1 from {HypeDuels.TimeStarting.arena.%arg-2%}
- wait 1 seconds
- send {HypeDuels.arena.lives.%arg-2%::*} title "&e&lGood Lucky" with subtitle "&f%{HypeDuels.option.ServerName}%" for 1 seconds
- set {HypeDuels.scoreboard.playing.%player%} to true
- set {HypeDuels.scoreboard.wait.%player%} to false
- loop {HypeDuels.arena.lives.%arg-2%::*}:
- set {HypeDuels.movehere.%loop-value%} to false
- else:
- loop {HypeDuels.option.NeedPlayers::*}:
- send "%{HypeDuels.Prefix}%%coloured loop-value%"
- send "%{HypeDuels.Prefix}% &aMin Players &6= &f2"
- else:
- send "&fGame Status: &a%{HypeDuels.status.%arg-2%}%"
- else:
- send "&cArena Inexistente &b(Arena No Found with this name)"
- else:
- send "&a%{HypeDuels.Prefix}% &cAlready in game!"
- if arg-1 is "jtpdldedasd":
- add 1 to {HypeDuels.jointp.%{HypeDuels.player.arena.%player%}%}
- teleport player to {HypeDuels.player.spawn.%{HypeDuels.jointp.%{HypeDuels.player.arena.%player%}%}%.%{HypeDuels.player.arena.%player%}%}
- if {HypeDuels.jointp.%{HypeDuels.player.arena.%player%}%} is 2:
- set {HypeDuels.jointp.%{HypeDuels.player.arena.%player%}%} to 0
- if arg-1 is "stats":
- if arg-2 is not set:
- send "%{HypeDuels.Prefix}% &aYour's Stats"
- send " "
- send "&aKills: &6%{HypeDuels.player.kills.%player%}%"
- send "&aWins: &6%{HypeDuels.player.wins.%player%}%"
- send "&aDeaths: &6%{HypeDuels.player.Deaths.%player%}%"
- send " "
- else:
- send "%{HypeDuels.Prefix}% &aStats of %arg-2%"
- send " "
- send "&aKills: &6%{HypeDuels.player.kills.%arg-2%}%"
- send "&aWins: &6%{HypeDuels.player.wins.%arg-2%}%"
- send "&aDeaths: &6%{HypeDuels.player.Deaths.%arg-2%}%"
- send " "
- if arg-1 is "reload":
- if player has permission "hypeduels.admin":
- make console execute command "/sk reload %script%"
- send "&aReload Completed &fView Bugs or error's in &bconsole"
- if arg-1 is "leave":
- if {HypeDuels.player.playing.%player%} is true:
- if {HypeDuels.players.%{HypeDuels.player.arena.%player%}%} is 2:
- remove 1 from {HypeDuels.players.%{HypeDuels.player.arena.%player%}%}
- loop {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}:
- set {_sender} to "%loop-value%"
- send "%{HypeDuels.Prefix}% &fThanks for play" to {HypeDuels.arena.lives.%arg-2%::*}
- set {_quitcmds} to coloured value "LeaveInGame" get of "plugins/HypeDuels/messages/messages.yml"
- set {_quitcmd} to "%{_quitcmds}%"
- replace all "<rank>" with "%player's prefix%" in {_quitcmd}
- replace all "<player>" with "%player%" in {_quitcmd}
- replace all "<players>" with "%{HypeDuels.players.%{HypeDuels.player.arena.%player%}%}%" in {_quitcmd}
- replace all "<max>" with "2" in {_quitcmd}
- send "%coloured {_quitcmd}%" to {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}
- remove player from {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}
- loop {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}:
- set {_senderdos} to "%loop-value%"
- loop {HypeDuels.option.WinMsg::*}:
- wait 0.35 seconds
- set {_lv} to "%loop-value%"
- replace all "<first>" with "&f%{_senderdos}%" in {_lv}
- replace all "[x]" with "β " in {_lv}
- replace all "<second>" with "&f%player%" in {_lv}
- replace all "<coins>" with "15" in {_lv}
- send "%colored {_lv}%" to {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}
- loop {HypeDuels.option.Title::*}:
- set {_actiontitle} to "%loop-value%"
- loop {HypeDuels.option.SubTitle::*}:
- set {_actionsubtitle} to "%loop-value%"
- send {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*} title "%{_actiontitle}%" with subtitle "%{_actionsubtitle}%" for 4 seconds
- loop {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}:
- set {HypeDuels.scoreboard.wait.%loop-value%} to false
- set {HypeDuels.scoreboard.playing.%loop-value%} to false
- set {HypeDuels.player.playing.%loop-value%} to false
- remove loop-value from {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}
- set {HypeDuels.scoreboard.wait.%player%} to false
- set {HypeDuels.scoreboard.playing.%player%} to false
- clear player's inventory
- set {HypeDuels.status.%{Hypeduels.player.arena.%player%}%} to "&bFinishing"
- strike lightning effect at player
- invoke "sign-status" from arg-2
- loop blocks within {HypeDuels.positions.1.%{HypeDuels.player.arena.%player%}%} to {HypeDuels.positions.2.%{HypeDuels.player.arena.%player%}%}:
- if {HypeDuels.%{HypeDuels.player.arena.%player%}%.lag} > 100:
- wait 1.5 seconds
- set {HypeDuels.%{HypeDuels.player.arena.%player%}%.lag} to 0
- if {HypeDuels.game.%{HypeDuels.player.arena.%player%}%.blocks::%location of loop-block%} is not set:
- if loop-block is not air:
- add 1 to {HypeDuels.%{HypeDuels.player.arena.%player%}%.lag}
- set loop-block to air
- else:
- if type of loop-block is not {HypeDuels.game.%{HypeDuels.player.arena.%player%}%.blocks::%location of loop-block%}:
- add 1 to {HypeDuels.%{HypeDuels.player.arena.%player%}%.lag}
- set block at loop-block to {HypeDuels.game.%{HypeDuels.player.arena.%player%}%.blocks::%location of loop-block%}
- set {HypeDuels.status.%{HypeDuels.player.arena.%player%}%} to "&aWaiting"
- set {HypeDuels.players.%{HypeDuels.player.arena.%player%}%} to 0
- set {HypeDuels.game.%{HypeDuels.player.arena.%player%}%.run} to false
- set {HypeDuels.game.%{HypeDuels.player.arena.%player%}%.seconds.1} to 5
- set {HypeDuels.game.%{HypeDuels.player.arena.%player%}%.seconds.2} to 20
- invoke "sign-status" from {HypeDuels.player.arena.%player%}
- remove player from {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}
- clear {HypeDuels.player.arena.%player%}
- set {HypeDuels.player.playing.%player%} to false
- delete player's sidebar
- else if {HypeDuels.players.%{HypeDuels.player.arena.%player%}%} is 1:
- set {_quitcmds} to coloured value "Leave" get of "plugins/HypeDuels/messages/messages.yml"
- set {_quitcmd} to "%{_quitcmds}%"
- replace all "<player>" with "%player%" in {_quitcmd}
- replace all "<rank>" with "%player's prefix%" in {_quitcmd}
- replace all "<players>" with "%{HypeDuels.players.%{HypeDuels.player.arena.%player%}%}%" in {_quitcmd}
- replace all "<max>" with "2" in {_quitcmd}
- send "%coloured {_quitcmd}%" to {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}
- set {HypeDuels.player.playing.%player%} to false
- remove 1 from {HypeDuels.players.%{HypeDuels.player.arena.%player%}%}
- clear player's inventory
- delete player's sidebar
- set {HypeDuels.player.playing.%player%} to false
- set {HypeDuels.scoreboard.wait.%player%} to false
- set {HypeDuels.scoreboard.playing.%player%} to false
- invoke "sign-status" from {HypeDuels.player.arena.%player%}
- remove player from {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}
- clear {HypeDuels.player.arena.%player%}
- send "%{HypeDuels.Prefix}% &6You left the game!"
- on death of a player:
- set death message to ""
- if {HypeDuels.player.playing.%victim%} is "true":
- if {HypeDuels.players.%{HypeDuels.player.arena.%victim%}%} is 2:
- remove 1 from {HypeDuels.players.%{HypeDuels.player.arena.%victim%}%}
- loop {HypeDuels.arena.lives.%{HypeDuels.player.arena.%victim%}%::*}:
- set {_sender} to "%loop-value%"
- send "%{HypeDuels.Prefix}% &fThanks for play" to {HypeDuels.arena.lives.%{HypeDuels.player.arena.%victim%}%::*}
- send "%{HypeDuels.Prefix}% &6%victim% &edeath" to {HypeDuels.arena.lives.%{HypeDuels.player.arena.%victim%}%::*}
- remove victim from {HypeDuels.arena.lives.%{HypeDuels.player.arena.%victim%}%::*}
- remove attacker from {HypeDuels.arena.lives.%{HypeDuels.player.arena.%victim%}%::*}
- loop {HypeDuels.arena.lives.%{HypeDuels.player.arena.%victim%}%::*}:
- set {_senderdos} to "%loop-value%"
- loop {HypeDuels.option.WinMsg::*}:
- wait 0.35 seconds
- set {_lv} to "%loop-value%"
- replace all "<first>" with "&f%{_senderdos}%" in {_lv}
- replace all "[x]" with "β " in {_lv}
- replace all "<second>" with "&f%victim%" in {_lv}
- replace all "<coins>" with "15" in {_lv}
- send "%colored {_lv}%" to {HypeDuels.arena.lives.%{HypeDuels.player.arena.%victim%}%::*}
- loop {HypeDuels.option.Title::*}:
- set {_actiontitle} to "%loop-value%"
- loop {HypeDuels.option.SubTitle::*}:
- set {_actionsubtitle} to "%loop-value%"
- send {HypeDuels.arena.lives.%{HypeDuels.player.arena.%victim%}%::*} title "%{_actiontitle}%" with subtitle "%{_actionsubtitle}%" for 4 seconds
- loop {HypeDuels.arena.lives.%{HypeDuels.player.arena.%victim%}%::*}:
- set {HypeDuels.scoreboard.wait.%loop-value%} to false
- set {HypeDuels.scoreboard.playing.%loop-value%} to false
- set {HypeDuels.player.playing.%loop-value%} to false
- remove loop-value from {HypeDuels.arena.lives.%{HypeDuels.player.arena.%victim%}%::*}
- set {HypeDuels.scoreboard.wait.%victim%} to false
- set {HypeDuels.scoreboard.playing.%victim%} to false
- set {HypeDuels.status.%{Hypeduels.player.arena.%victim%}%} to "&bFinishing"
- strike lightning effect at victim
- invoke "sign-status" from {HypeDuels.player.arena.%victim%}
- clear drops
- clear attacker's inventory
- loop blocks within {HypeDuels.positions.1.%{HypeDuels.player.arena.%victim%}%} to {HypeDuels.positions.2.%{HypeDuels.player.arena.%victim%}%}:
- if {HypeDuels.%{HypeDuels.player.arena.%victim%}%.lag} > 100:
- wait 1.5 seconds
- set {HypeDuels.%{HypeDuels.player.arena.%victim%}%.lag} to 0
- if {HypeDuels.game.%{HypeDuels.player.arena.%victim%}%.blocks::%location of loop-block%} is not set:
- if loop-block is not air:
- add 1 to {HypeDuels.%{HypeDuels.player.arena.%victim%}%.lag}
- set loop-block to air
- else:
- if type of loop-block is not {HypeDuels.game.%{HypeDuels.player.arena.%victim%}%.blocks::%location of loop-block%}:
- add 1 to {HypeDuels.%{HypeDuels.player.arena.%victim%}%.lag}
- set block at loop-block to {HypeDuels.game.%{HypeDuels.player.arena.%victim%}%.blocks::%location of loop-block%}
- set {HypeDuels.status.%{HypeDuels.player.arena.%victim%}%} to "&aWaiting"
- set {HypeDuels.players.%{HypeDuels.player.arena.%victim%}%} to 0
- set {HypeDuels.game.%{HypeDuels.player.arena.%victim%}%.run} to false
- set {HypeDuels.game.%{HypeDuels.player.arena.%victim%}%.seconds.1} to 5
- set {HypeDuels.game.%{HypeDuels.player.arena.%victim%}%.seconds.2} to 20
- invoke "sign-status" from {HypeDuels.player.arena.%victim%}
- remove victim from {HypeDuels.arena.lives.%{HypeDuels.player.arena.%victim%}%::*}
- clear {HypeDuels.player.arena.%victim%}
- set {HypeDuels.player.playing.%victim%} to false
- set {HypeDuels.player.playing.%attacker%} to false
- on quit:
- if {HypeDuels.player.playing.%player%} is "true":
- if {HypeDuels.players.%{HypeDuels.player.arena.%player%}%} is 2:
- remove 1 from {HypeDuels.players.%{HypeDuels.player.arena.%player%}%}
- loop {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}:
- set {_sender} to "%loop-value%"
- send "%{HypeDuels.Prefix}% &fThanks for play" to {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}
- send "%{HypeDuels.Prefix}% &6%player% &equit"
- remove player from {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}
- loop {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}:
- set {_senderdos} to "%loop-value%"
- loop {HypeDuels.option.WinMsg::*}:
- wait 0.35 seconds
- set {_lv} to "%loop-value%"
- replace all "<first>" with "&f%{_senderdos}%" in {_lv}
- replace all "[x]" with "β " in {_lv}
- replace all "<second>" with "&f%player%" in {_lv}
- replace all "<coins>" with "15" in {_lv}
- send "%colored {_lv}%" to {_sender}
- loop {HypeDuels.option.Title::*}:
- set {_actiontitle} to "%loop-value%"
- loop {HypeDuels.option.SubTitle::*}:
- set {_actionsubtitle} to "%loop-value%"
- send {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*} title "%{_actiontitle}%" with subtitle "%{_actionsubtitle}%" for 4 seconds
- loop {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}:
- set {HypeDuels.scoreboard.wait.%loop-value%} to false
- set {HypeDuels.scoreboard.playing.%loop-value%} to false
- set {HypeDuels.player.playing.%loop-value%} to false
- remove loop-value from {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}
- set {HypeDuels.scoreboard.wait.%player%} to false
- set {HypeDuels.scoreboard.playing.%player%} to false
- clear player's inventory
- send {_sender} title "%{_actiontitle}%" with subtitle "%{_actionsubtitle}%" for 4 seconds
- set {HypeDuels.status.%{Hypeduels.player.arena.%player%}%} to "&c&lFinishing"
- strike lightning effect at player
- invoke "sign-status" from {HypeDuels.player.arena.%player%}
- loop blocks within {HypeDuels.positions.1.%{HypeDuels.player.arena.%player%}%} to {HypeDuels.positions.2.%{HypeDuels.player.arena.%player%}%}:
- if {HypeDuels.%{HypeDuels.player.arena.%player%}%.lag} > 100:
- wait 1.5 seconds
- set {HypeDuels.%{HypeDuels.player.arena.%player%}%.lag} to 0
- if {HypeDuels.game.%{HypeDuels.player.arena.%player%}%.blocks::%location of loop-block%} is not set:
- if loop-block is not air:
- add 1 to {HypeDuels.%{HypeDuels.player.arena.%player%}%.lag}
- set loop-block to air
- else:
- if type of loop-block is not {HypeDuels.game.%{HypeDuels.player.arena.%player%}%.blocks::%location of loop-block%}:
- add 1 to {HypeDuels.%{HypeDuels.player.arena.%player%}%.lag}
- set block at loop-block to {HypeDuels.game.%{HypeDuels.player.arena.%player%}%.blocks::%location of loop-block%}
- set {HypeDuels.status.%{HypeDuels.player.arena.%player%}%} to "&aWaiting"
- set {HypeDuels.players.%{HypeDuels.player.arena.%player%}%} to 0
- set {HypeDuels.game.%{HypeDuels.player.arena.%player%}%.run} to false
- set {HypeDuels.game.%{HypeDuels.player.arena.%player%}%.seconds.1} to 5
- set {HypeDuels.game.%{HypeDuels.player.arena.%player%}%.seconds.2} to 20
- invoke "sign-status" from {HypeDuels.player.arena.%player%}
- remove player from {HypeDuels.arena.lives.%{HypeDuels.player.arena.%player%}%::*}
- clear {HypeDuels.player.arena.%player%}
- set {HypeDuels.player.playing.%player%} to false
- on join:
- if {HypeDuels.player.playing.%player%} is not set:
- set {HypeDuels.player.playing.%player%} to false
- else:
- set {HypeDuels.player.playing.%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement