options:
p: &8[&exMax&8]
prefix: &8[&eTurkishArmy&8]
p3: &8[&3xMax&8]
noperm: &Üzgünüm yetkin yok buna&8!
variables:
{map::1} = 0
{map::2} = 0
{map::3} = 0
{map::4} = 0
{map::5} = 0
command /votemapset [<text>]:
permission: xMax.mps
permission message: {@noperm}
aliases: /ms, /mps
trigger:
if arg 1 is set:
if arg 1 is "map1":
set {map1} to player's location
message "{@p} &7You set location to &c&lMap1"
if arg 1 is "map2":
set {map2} to player's location
message "{@p} &7You set location to &c&lMap2"
if arg 1 is "map3":
set {map3} to player's location
message "{@p} &7You set location to &c&lMap3"
if arg 1 is "map4":
set {map4} to player's location
message "{@p} &7You set location to &c&lMap4"
if arg 1 is "map5":
set {map5} to player's location
message "{@p} &7You set location to &c&lMap5"
if arg 1 is not set:
send "{@p} &7/mapset &8[&amap1&8/&amap2&8/&amap3&8/&amap4&8/&amap5&8]"
command /mapnameset [<text>] [<text>]:
permission: xMax.mns
permission message: {@noperm}
trigger:
arg 1 is not set:
send "{@p} &7/mapnameset &8[&amap1&8/&amap2&8/&amap3&8/&amap4&8/&amap5&8] [&emap name&8]"
if arg 1 is set:
if arg 2 is set:
if arg 1 is "map1":
set {map1name} to "&2%arg 2%"
message "{@p} &c&lMap1&7's name is now &2&l%arg 2%"
if arg 1 is "map2":
set {map2name} to "&2%arg 2%"
message "{@p} &c&lMap2&7's name is now &2&l%arg 2%"
if arg 1 is "map3":
set {map3name} to "&2%arg 2%"
message "{@p} &c&lMap3&7's name is now &2&l%arg 2%"
if arg 1 is "map4":
set {map4name} to "&2%arg 2%"
message "{@p} &c&lMap4&7's name is now &2&l%arg 2%"
if arg 1 is "map5":
set {map5name} to "&2%arg 2%"
message "{@p} &c&lMap5&7's name is now &2&l%arg 2%"
command /votemapenable [<text>] [<text>]:
permission: xmax.vme
permission message: {@noperm}
aliases: /vme
trigger:
if arg 1 is not set:
send "{@p} &7/votemapenable &8[&aEnable&8/&cDisable] &8[&amap1&8/&amap2&8/&amap3&8/&amap4&8/&amap5&8]"
if arg 1 is set:
if arg 2 is set:
if arg 1 is "enable":
if arg 2 is "map1":
set {voteenable::1} to "Disable"
message "{@p} &r%{map1name}% &7Is now &c&lDisabled&8!"
if arg 2 is "map2":
set {voteenable::2} to "Disable"
message "{@p} &r%{map2name}% &7Is now &c&lDisabled&8!"
if arg 2 is "map3":
set {voteenable::3} to "Disable"
message "{@p} &r%{map3name}% &7Is now &c&lDisabled&8!"
if arg 2 is "map4":
set {voteenable::4} to "Disable"
message "{@p} &r%{map4name}% &7Is now &c&lDisabled&8!"
if arg 2 is "map5":
set {voteenable::5} to "Disable"
message "{@p} &r%{map5name}% &7Is now &c&lDisabled&8!"
command /v [<text>]:
aliases: /vote
trigger:
if arg 1 is not "1" or "2" or "3" or "4" or "5":
send "{@p} &2Players waiting&8: &8[&6%number of all players%&8/&632&8]&8."
send "{@p} &2Vote using &8[&a/vote map&8]."
send "{@p} &a1 &8> : &e%{map::1}% &7Votes&8 : &2%{map1name}%"
send "{@p} &a2 &8> : &e%{map::2}% &7Votes&8 : &2%{map2name}%"
send "{@p} &a3 &8> : &e%{map::3}% &7Votes&8 : &2%{map3name}%"
send "{@p} &a4 &8> : &e%{map::4}% &7Votes&8 : &2%{map4name}%"
send "{@p} &a5 &8> : &e%{map::5}% &7Votes&8 : &2%{map5name}%"
arg 1 is not set:
send "{@p} &2Players waiting&8: &8[&6%number of all players%&8/&632&8]&8."
send "{@p} &2Vote using &8[&a/vote map&8]."
send "{@p} &a1 &8> : &e%{map::1}% &7Votes&8 : &2%{map1name}%"
send "{@p} &a2 &8> : &e%{map::2}% &7Votes&8 : &2%{map2name}%"
send "{@p} &a3 &8> : &e%{map::3}% &7Votes&8 : &2%{map3name}%"
send "{@p} &a4 &8> : &e%{map::4}% &7Votes&8 : &2%{map4name}%"
send "{@p} &a5 &8> : &e%{map::5}% &7Votes&8 : &2%{map5name}%"
if arg 1 is set:
if arg 1 is "1":
if {voteuse::%player%} is not set:
if player has permission "vote.gold":
add 2 to {map::1}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::1}%&8] &fvotes&8."
else if player has permission "vote.diamond":
add 3 to {map::1}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::1}%&8] &fvotes&8."
else if player has permission "vote.platinum":
add 4 to {map::1}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::1}%&8] &fvotes&8."
else if player has permission "vote.moderator":
add 5 to {map::1}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::1}%&8] &fvotes&8."
else:
add 1 to {map::1}
message "{@p} &fYour map now has &8[&6%{map::1}%&8] &fvotes&8."
set {voteuse::%player%} to "false"
if arg 1 is "2":
if {voteuse::%player%} is not set:
if player has permission "vote.gold":
add 2 to {map::2}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::2}%&8] &fvotes&8."
else if player has permission "vote.diamond":
add 3 to {map::2}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::2}%&8] &fvotes&8."
else if player has permission "vote.platinum":
add 4 to {map::2}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::2}%&8] &fvotes&8."
else if player has permission "vote.moderator":
add 5 to {map::2}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::2}%&8] &fvotes&8."
else:
add 1 to {map::2}
message "{@p} &fYour map now has &8[&6%{map::2}%&8] &fvotes&8."
set {voteuse::%player%} to "false"
if arg 1 is "3":
if {voteuse::%player%} is not set:
if player has permission "vote.gold":
add 2 to {map::3}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::3}%&8] &fvotes&8."
else if player has permission "vote.diamond":
add 3 to {map::3}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::3}%&8] &fvotes&8."
else if player has permission "vote.platinum":
add 4 to {map::3}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::3}%&8] &fvotes&8."
else if player has permission "vote.moderator":
add 5 to {map::3}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::3}%&8] &fvotes&8."
else:
add 1 to {map::3}
message "{@p} &fYour map now has &8[&6%{map::3}%&8] &fvotes&8."
set {voteuse::%player%} to "false"
if arg 1 is "4":
if {voteuse::%player%} is not set:
if player has permission "vote.gold":
add 2 to {map::4}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::4}%&8] &fvotes&8."
else if player has permission "vote.diamond":
add 3 to {map::4}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::4}%&8] &fvotes&8."
else if player has permission "vote.platinum":
add 4 to {map::4}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::4}%&8] &fvotes&8."
else if player has permission "vote.moderator":
add 5 to {map::4}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::4}%&8] &fvotes&8."
else:
add 1 to {map::4}
message "{@p} &fYour map now has &8[&6%{map::4}%&8] &fvotes&8."
set {voteuse::%player%} to "false"
if arg 1 is "5":
if {voteuse::%player%} is not set:
if player has permission "vote.gold":
add 2 to {map::5}
set {voteuse::%player%} to "false"
message "{@p} &fYour map now has &8[&6%{map::5}%&8] &fvotes&8."
else if player has permission "vote.diamond":
add 3 to {map::5}
message "{@p} &fYour map now has &8[&6%{map::5}%&8] &fvotes&8."
set {voteuse::%player%} to "false"
else if player has permission "vote.platinum":
add 4 to {map::5}
message "{@p} &fYour map now has &8[&6%{map::5}%&8] &fvotes&8."
set {voteuse::%player%} to "false"
else if player has permission "vote.moderator":
add 5 to {map::5}
message "{@p} &fYour map now has &8[&6%{map::5}%&8] &fvotes&8."
set {voteuse::%player%} to "false"
else:
add 1 to {map::5}
message "{@p} &fYour map now has &8[&6%{map::5}%&8] &fvotes&8."
set {voteuse::%player%} to "false"
else:
if {voteuse::%player%} is set:
send "{@p} &fYou already voted&8!"
command /sifirlamk:
trigger:
loop all players:
delete {voteuse::%loop-player%}
set {map::1} to 0
set {map::2} to 0
set {map::3} to 0
set {map::4} to 0
set {map::5} to 0
every 5 minutes:
make console execute command "/votestart"
make console execute command "/sifirlamk"
on join:
wait 2 seconds
send "{@p} &2Players waiting&8: &8[&6%number of all players%&8/&632&8]&8."
send "{@p} &2Vote using &8[&a/vote map&8]."
send "{@p} &a1 &8> : &e%{map::1}% &7Votes&8 : &2%{map1name}%"
send "{@p} &a2 &8> : &e%{map::2}% &7Votes&8 : &2%{map2name}%"
send "{@p} &a3 &8> : &e%{map::3}% &7Votes&8 : &2%{map3name}%"
send "{@p} &a4 &8> : &e%{map::4}% &7Votes&8 : &2%{map4name}%"
send "{@p} &a5 &8> : &e%{map::5}% &7Votes&8 : &2%{map5name}%"
every 1 minutes:
wait 2 seconds
broadcast "{@p} &2Players waiting&8: &8[&6%number of all players%&8/&632&8]&8."
broadcast "{@p} &2Vote using &8[&a/vote map&8]."
broadcast "{@p} &a1 &8> : &e%{map::1}% &7Votes&8 : &2%{map1name}%"
broadcast "{@p} &a2 &8> : &e%{map::2}% &7Votes&8 : &2%{map2name}%"
broadcast "{@p} &a3 &8> : &e%{map::3}% &7Votes&8 : &2%{map3name}%"
broadcast "{@p} &a4 &8> : &e%{map::4}% &7Votes&8 : &2%{map4name}%"
broadcast "{@p} &a5 &8> : &e%{map::5}% &7Votes&8 : &2%{map5name}%"
command /votestart:
permission: xmax.owner
permission message: {@noperm}
trigger:
set {_voteresult::*} to sorted {map::*} from lowest to highest with output "@index"
loop {_voteresult::*}:
set {winnermap} to "%loop-value%"
set {map::1} to 0
set {map::2} to 0
set {map::3} to 0
set {map::4} to 0
set {map::5} to 0
if {winnermap} is "1":
execute console command "voteset winnermap1"
else if {winnermap} is "2":
execute console command "voteset winnermap2"
else if {winnermap} is "3":
execute console command "voteset winnermap3"
else if {winnermap} is "4":
execute console command "voteset winnermap4"
else if {winnermap} is "5":
execute console command "voteset winnermap5"
command /voteset [<text>]:
permission: xmax.owner
permission message: {@noperm}
aliases: /vt
trigger:
if arg 1 is set:
if arg 1 is "winnermap1":
wait 5 seconds
broadcast "{@p} &2&lThis Vote Round's winner &e&l%{map1name}%"
wait 2 seconds
loop all players:
teleport loop-player to {map1}
broadcast "{@prefix} &eMap name&8: &2Logo Map"
broadcast "{@prefix} &eMap author&8: &2Unknown"
broadcast "{@prefix} &eMap link&8: &8(&cnone&8)"
else if arg 1 is "winnermap2":
wait 5 seconds
broadcast "{@p} &2&lThis Vote Round's winner &e&l%{map2name}%"
wait 2 seconds
loop all players:
teleport loop-player to {map2}
broadcast "{@prefix} &eMap name&8: &2Castle Map"
broadcast "{@prefix} &eMap author&8: &2MCGamer Network"
broadcast "{@prefix} &eMap link&8: &8(&cnone&8)"
else if arg 1 is "winnermap3":
wait 5 seconds
broadcast "{@p} &2&lThis Vote Round's winner &e&l%{map3name}%"
wait 2 seconds
loop all players:
teleport loop-player to {map3}
broadcast "{@prefix} &eMap name&8: &2IceBerg Map"
broadcast "{@prefix} &eMap author&8: &2MCGamer Network"
broadcast "{@prefix} &eMap link&8: &8(&cnone&8)"
else if arg 1 is "winnermap4":
wait 5 seconds
broadcast "{@p} &2&lThis Vote Round's winner &e&l%{map4name}%"
wait 2 seconds
loop all players:
teleport loop-player to {map4}
broadcast "{@prefix} &eMap name&8: &2Port Map"
broadcast "{@prefix} &eMap author&8: &2MCGamer Network"
broadcast "{@prefix} &eMap link&8: &8(&cnone&8)"
else if arg 1 is "winnermap5":
wait 5 seconds
broadcast "{@p} &2&lThis Vote Round's winner &e&l%{map5name}%"
wait 2 seconds
loop all players:
teleport loop-player to {map4}
broadcast "{@prefix} &eMap name&8: &2Beach Map"
broadcast "{@prefix} &eMap author&8: &2MCGamer Network"
broadcast "{@prefix} &eMap link&8: &8(&cnone&8)"