Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #1vs1
- command /1vs1 [<text>] [<text>] [<text>]:
- aliases:
- trigger:
- if player has permission "1vs1.admin":
- if arg 1 is "create":
- if arg 2 is set:
- if {b1vs1::map::%arg 2%} is not set:
- set {b1vs1::map::%arg 2%} to arg 2
- send "{@tag}&2Utwozyles pomyslnie mape:&3 %arg 2%!"
- else:
- send "{@tag}&cMapa o nazwie:&2 %arg 2% &cJuz istnieje!"
- else:
- send "{@tag}&cPodaj nazwe mapy!"
- if arg 1 is "setlobby":
- set {_x} to location of player
- clear {b1vs1::lobby::global}
- set {b1vs1::lobby::global} to {_x}
- send "{@tag}&2Ustawiles lobby"
- if arg 1 is "spawnmap":
- if arg 2 is set:
- if arg 3 is "blue" or "red":
- if {b1vs1::map::%arg 2%} is set:
- set {_x} to arg 3
- set {_y} to location of player
- if {_x} is "blue":
- set {b1vs1::spawnPoint::{_x}::%arg 2%} to {_y}
- send "{@tag}&2Utwozyles spawn &d{_x} na mapie &d%arg 2%!"
- if {_x} is "red"
- set {b1vs1::spawnPoint::{_x}::%arg 2%} to {_y}
- send "{@tag}&2Utwozyles spawn &d{_x} na mapie &d%arg 2%!"
- else:
- send "{@tag}&cMozesz ustawić tylko spawn &1BLUE &ci &4RED!"
- else:
- send "{@tag}&cNie mapy o nazwie &4%arg 2%"
- else:
- send "{@tag}&cMozesz ustawić tylko spawn &1BLUE &ci &4RED!"
- else:
- send "{@tag}&cPodaj nazwe mapy!"
- if arg 1 is "sprawdz":
- if arg 2 is player:
- send "{@tag}&bStatystyki gracza: &2%arg 2%"
- send " &2Wygrane&7: &e{b1vs1::win::%arg 2%}"
- send " &2Przegrane&7: &e{b1vs1::lose::%arg 2%}"
- send " &2Zabojstwa&7: &e{b1vs1::kill::%arg 2%}"
- send " &2Smierci&7: &e{b1vs1::death::%arg 2%}"
- if player has permission "b1vs1.gracz":
- if arg 1 is "dolacz":
- if arg 2 is set:
- if {b1vs1::map::%arg 2%} is set:
- if {b1vs1::waitingMap::%arg 2%} is "brak":
- set {_x} to random integer between 1 and 2
- if {_x} is "1":
- teleport player to {b1vs1::spawnPoint::%arg 2%::blue}
- set {b1vs1::oczekuje::%player%} to true
- set {b1vs1::waitingMap::%arg 2%} to "1"
- set {b1vs1::zostalo::%arg 2%} to "red"
- add %player% {b1vs1::walka::%arg 2%}
- clear player inventory
- loop 36 times:
- set {_x} to 1*0.1
- give player 1 emerald named "&4CZEKAJ" with lore "&0{_x}"
- if {_x} is "2":
- teleport player to {b1vs1::spawnPoint::%arg 2%::red}
- set {b1vs1::oczekuje::%player%} to true
- set {b1vs1::waitingMap::%arg 2%} to "1"
- set {b1vs1::zostalo::%arg 2%::blue} to "red"
- add %player% {b1vs1::walka::%arg 2%}
- clear player inventory
- loop 36 times:
- set {_x} to 1*0.1
- give player 1 emerald named "&4CZEKAJ" with lore "&0{_x}"
- if {b1vs1::waitingMap::%arg 2%} is "1"
- if {b1vs1::zostalo::%arg 2%} is "red":
- teleport player to {b1vs1::spawnPoint::%arg 2%::red}
- set {b1vs1::oczekuje::%player%} to true
- set {b1vs1::waitingMap::%arg 2%} to "full"
- set {b1vs1::zostalo::%arg 2%} to "nic"
- add %player% {b1vs1::walka::%arg 2%}
- loop {b1vs1::walka::%arg 2%}:
- set {_x} to {b1vs1::walka::%arg 2%}:
- relpace all "and" with "i" in {_x}
- send "{@tag}&2Walka pomiedzy &4{_x} zaraz sie rozpocznie" to loop-index
- send "{@tag}Macie 30 sekund na wybranie 2 klas, po czym rozpocznie sie losowanie" to loop-index
- open chest with 4 rows named "&21vs1" to loop-index
- wait 1 tick
- format slot 13 of loop-index with 1 of diamond sword named "&2Wojownik" to close then run "napewnowoj"
- format slot 14 of loop-index with 1 of bow named "&2Lucznik" to close then run "napewnolucznik"
- format slot 15 of loop-index with 1 of diamond chestplate named "&2Czolg" to close then run "napewnotank"
- set {b1vs1::mapWaitForPick::%arg 2%} to 30
- loop {b1vs1::mapWaitForPick::%arg 2%} time:
- remove 1 from {b1vs1::mapWaitingForPick::%arg 2%}
- wait 1 second
- if {b1vs1::mapWaitForPick::%arg 2%} is 0
- loop {b1vs1::walka::%arg 2%}:
- set {b1vs1::mapWalk::loop-index} to true
- on death of player:
- if attacker is a player:
- add 1 to {b1vs1::kill::%attacker%}
- add 1 to {b1vs1::death::%victim%}
- if {b1vs1::mapWalk::%attacker%} is true:
- if {b1vs1::winMap::%attacker%} is "0":
- add 1 to {b1vs1::winMap::%attacker%}
- send "{@tag}&2Wygrales runde z %victim%!" to attacker
- send "{@tag}&cPrzegrales runde z %attacker%" to victim
- if {b1vs1::winMap::%attacker%} is "1":
- add 1 to {b1vs1::winMap::%atatcker%}
- send "{@tag}&2Wygrales runde z %victim%!" to attacker
- send "{@tag}&cPrzegrales runde z %attacker%" to victim
- if {b1vs1::winMap::%atatcker%} is "2":
- add 1 to {b1vs1::win::%attacker%}
- add 1 to {b1vs1::lose::%victim%}
- send "{@tag}&2Wyrales mape z %victim%" to attacker
- send "{@tag}&cPrzegrales mape z %attacker%" to victim
- on sign change:
- if player has permission "1vs1.admin":
- if line 1 is "1vs1""
- if line 2 is "dolacz":
- if line 3 is set:
- if {b1vs1::map::%line 3%} is set:
- set line 1 to "{@line1}"
- set line 2 to "&2Dolacz"
- set line 3 to "&6%{b1vs1::map::%line 3%}%"
- if line 2 is "opusc":
- set line 1 to "{@line1}"
- set line 2 to "&2Opusc"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement