Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- administracja//
- chat//
- handel//
- kod//
- ban//
- czyszczenie//
- otchlan//
- #spr
- wezwij//
- czysty//
- cheaty//
- wspolpraca//
- help//
- ustaw uklatka/spawn//
- zakonczenie//
- on quit//
- on command//
- perla//
- variables:
- {chat} = true
- options:
- tag: &8[&9TWOJ TAG&8]
- bcmsg: &8[&4Administrator&8]
- pexAD: admin
- pexMsg: &8>> &cNie masz uprawnien do tej komendy!
- logo: &c[Maracana]
- pex: spr.1
- pex2: spr.2
- w.pex: &8>> &cNie masz uprawnien do tej komendy!
- tag: &e[Sprawdzanie]
- set.czasPrzyznanie: 7d
- set.czasCheaty: 10d
- set.czasLogout: 60d
- set.czasWspolpraca: 30d
- on script load:
- if folder "plugins/Skript/scripts/Maracana" doesn't exists:
- create folder "plugins/Skript/scripts/Maracana"
- create folder "plugins/Skript/scripts/Maracana/bany"
- create folder "plugins/Skript/scripts/Maracana/ipbany"
- create folder "plugins/Skript/scripts/Maracana/muty"
- broadcast "&6&lPLIKI Maracana zostaly stworzone!"
- stop
- command /administracja [<text>]
- trigger:
- open chest with 3 rows named "&4&lAdministracja" to player
- set {_i} to 0
- loop 10 times:
- format slot {_i} of player with gray glass pane named " " to be unstealable
- ad 1 to {_i}
- set {_i} to 17
- loop 10 times:
- format slot {_i} of player with gray glass pane named " " to be unstealable
- ad 1 to {_i}
- #10-16
- format slot 10 with head named "" with lore "" to be unstealable
- format slot 11 with head named "" with lore "" to be unstealable
- format slot 12 with head named "" with lore "" to be unstealable
- format slot 13 with head named "" with lore "" to be unstealable
- format slot 14 with head named "" with lore "" to be unstealable
- format slot 15 with head named "" with lore "" to be unstealable
- format slot 16 with head named "" with lore "" to be unstealable
- command /chat [<text>] [<text>] [<text>]:
- permission: chatPX.sk or op
- permission message: {@tag}&c&lNie posiadasz uprawnien aby uzyc tej komendy!
- trigger:
- if arg 1 is not set:
- send "&8**************{@tag}&8*****************"
- send "&8/chat &cpomoc &8- &c&l Wyswietla komendy zawarte w skrypcie"
- send "&8/chat &con/off &8- &c&l Wlacza/wylacza chat"
- send "&8/chat &cclear/c &8- &c&l Czysci chat"
- send "&8/chat &cogloszenie/oglo &8- &c&lWysyla ogloszenie"
- send "&8/chat &ccenzura dodaj &8- &c&lDodaje cenzure"
- send "&8/chat &ccenzura usun &8- &c&lUsuwa cenzure"
- send "&8/chat &ccenzura lista &8- &c&lLista cenzur"
- send "&8/chat &cemotikony/emoty on/off &8- &c&lWlacza/wylacza emotikony"
- send "&8/chat &cspam &8- &c&lWysyla kilkanascie razy wiadomosc"
- send "&8/chat &cinfo &8- &c&lInformacje o skrypcie"
- send "&8**************{@tag}&8*****************"
- stop
- if arg 1 is set:
- if arg 1 is "pomoc" or "on" or "off" or "clear" or "c" or "ogloszenie" or "oglo" or "cenzura" or "emotikony" or "emoty" or "info":
- if arg 1 is "pomoc":
- send "&8**************{@tag}&8*****************"
- send "&8/chat &cpomoc &8- &c&l Wyswietla komendy zawarte w skrypcie"
- send "&8/chat &con/off &8- &c&l Wlacza/wylacza chat"
- send "&8/chat &cclear/c &8- &c&l Czysci chat"
- send "&8/chat &cogloszenie/oglo &8- &c&lWysyla ogloszenie"
- send "&8/chat &ccenzura dodaj &8- &c&lDodaje cenzure"
- send "&8/chat &ccenzura usun &8- &c&lUsuwa cenzure"
- send "&8/chat &ccenzura lista &8- &c&lLista cenzur"
- send "&8/chat &cemotikony/emoty on/off &8- &c&lWlacza/wylacza emotikony"
- send "&8/chat &cspam &8- &c&lWysyla kilkanascie razy wiadomosc"
- send "&8/chat &cinfo &8- &c&lInformacje o skrypcie"
- send "&8**************{@tag}&8*****************"
- stop
- if arg 1 is "on":
- set {chat} to true
- send "{@tag} &8>> &c&lWylaczyles chat! &8<<"
- broadcast "{@bcmsg} &8>> &c&l%player% wylaczyl czat! &8<<"
- if arg 1 is "off":
- set {chat} to false
- send "{@tag} &8>> &c&lWlaczyles chat! &8<<"
- broadcast "{@bcmsg} &8>> &c&l%player% wlaczyl czat! &8<<"
- if arg 1 is "clear" or "c":
- loop 200 times:
- send "" to all players
- broadcast "{@bcmsg} &8>> &c&lChat zostal wyczyszczony przez &c%player% &8<<"
- stop
- if arg 1 is "ogloszenie" or "oglo":
- if arg 2 is set:
- send "{@bcmsg}%colored arg 2%" to all players
- stop
- else:
- send "{@tag}Napisz cos!" to player
- stop
- if arg 1 is "cenzura":
- if arg 2 is "dodaj":
- if arg 3 is set:
- if {cenzura.%arg 3%} is not set:
- add "%arg 3%" to {censor::*}
- set {cenzura.%arg 3%} to "%arg 3%"
- send "{@tag} &8>> &6Pomyslnie dodano do cenzury slowo: &c%arg 3% &8<<"
- else:
- send "{@tag} &8>> &4Blad: &cW spisie cenzur juz jest taka cenzura. &8<<"
- else:
- send "{@tag} &8>> &4Blad: &cPodaj cenzure! &8<<"
- stop
- if arg 1 is "cenzura":
- if arg 2 is "usun":
- if arg 3 is set:
- if {cenzura.%arg 3%} is set:
- remove "%arg 3%" from {censor::*}
- set {cenzura.%arg 3%} to ""
- send "{@tag} &8>> &6Pomyslnie usunales slowo: &c%arg 3% &8<<"
- else:
- send "{@tag} &8>> &4Blad: &cW spisie cenzur nie ma takiej cenzury. &8<<"
- else:
- send "{@tag} &8>> &4Blad: &cPodaj cenzure! &8<<"
- stop
- if arg 1 is "cenzura":
- if arg 2 is "lista":
- if {censor::*} is not set:
- send "{@tag} &6Spis cenzur: &cBrak cenzur."
- else:
- send "{@tag} &6Spis cenzur: &c%{censor::*}%"
- stop
- if arg 1 is "emoty" or "Emotikony":
- if arg 2 is "on":
- send "&7{@tag}wlaczyles emotikony"
- set {Chat::Emotikony} to true
- stop
- if arg 2 is "off":
- send "&7{@tag}wylaczyles emotikony"
- set {Chat::Emotikony} to false
- stop
- if arg 1 is "spam":
- if arg 2 is set:
- loop 5 times:
- send "{@bcmsg}%colored arg 2%" to all players
- stop
- on chat:
- if {Chat::Emotikony} is true:
- replace all "<3" with "❤" in the message
- replace all ":)" with "âş" in the message
- replace all "(music)" with "♫" in the message
- replace all "(slonce)" with "âĽ" in the message
- replace all "(like)" with "✌" in the message
- replace all "(nice)" with "âś”" in the message
- replace all "(boy)" with "♀" in the message
- replace all "(girl)" with "♂" in the message
- replace all "(peace)" with "â®" in the message
- replace all ":(" with "âą" in the message
- replace all "(nope)" with "Ă—" in the message
- replace all "z/w" with "zaraz wracam" in the message
- replace all "z.w" with "zaraz wracam" in the message
- replace all "j/j" with "juz jestem" in the message
- replace all "j.j" with "juz jestem" in the message
- replace all "->" and "*->" in message with "→"
- replace all "<-" and "*<-" in message with "â†"
- replace all "\/" and "*\/" in message with "↓"
- replace all "/\" and "*/\" in message with "↑"
- replace all ">>" and "*>>" in message with "»"
- replace all "<<" and "*<<" in message with "«"
- replace all "-_*" in message with "ă„"
- if player doesn't have permission "chat.off" or "op":
- if {Chat::Status} is false:
- cancel event
- send "&cChat jest wylaczony!"
- command /handel [<text>] [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send "&0##=##"
- send "&7Komendy wymiany:"
- send "&a/handel <gracz> &7- Tworzysz/akceptujesz wymiane z graczem."
- send "&a/handel odrzuc &7- Odrzucasz wymiane z graczem."
- send "&a/handel odbierz &7- Odbierasz przedmioty z depozytu."
- send "&a/handel banknot <integer> &7- tworzysz banknot"
- stop
- if arg 1 is "banknot":
- if arg 2 is set:
- set {_int} to "%arg 2%" parsed as integer
- if {_int} is integer:
- if player's balance is larger than or equal to {_int}:
- if player has enough space for 1 paper of unbreaking 1 named "&aBanknot" with lore "&6Nominal:||&c%{_int}%&a$":
- give paper of unbreaking 1 named "&aBanknot" with lore "&6Nominal:||&c%{_int}%&a$" to player
- remove {_int} from player's balance
- send "&c* &7Stworzyles banknot o nominale: &c%{_int}%"
- stop
- send "&c* &7Nie masz miejsca w ekwipunku."
- stop
- send "&c* &7Nie masz tyle pieniedzy. &8(&6Stan: &3%player's balance%&8}"
- stop
- send "&c* &7Podaj liczbe calkowita."
- stop
- send "&c* &7Banknot, to jest waluta, ktorej mozesz uzywac podczas wymiany.%nl%&7Klikajac prawym na banknot, przywracasz pieniadze do konta."
- stop
- if arg 1 is "odrzuc":
- if {wymiana::%player%.status} is "oczekiwanie" or "gotowy":
- if {wymiana::%{wymiana::%player%.with}%.status} is "oczekiwanie" or "gotowy":
- send "&c* &7Gracz &6%player% &7odrzucil wymiane z toba." to {wymiana::%player%.with}
- send "&c* &7Anulowales wymiane z graczem: &6%{wymiana::%player%.with}%"
- clear {wymiana::%{wymiana::%player%.with}%.expire}
- clear {wymiana::%{wymiana::%player%.with}%.with}
- clear {wymiana::%{wymiana::%player%.with}%.status}
- clear {wymiana::%player%.expire}
- clear {wymiana::%player%.with}
- clear {wymiana::%player%.status}
- stop
- send "&c* &7Nie masz zadnego zaproszenia."
- stop
- if arg 1 is "odbierz":
- if size of {wymiana::%player%.deposit::*} is larger than 0:
- loop {wymiana::%player%.deposit::*}:
- if player has enough space for loop-value:
- give loop-value to player
- remove loop-value from {wymiana::%player%.deposit::*}
- send "&c* &7Prosze, odbierz swoje przedmioty."
- stop
- send "&c* &7Nie masz nic w depozycie."
- stop
- if arg 1 is "break":
- if sender is console:
- set {_player} to "%arg 2%" parsed as offlineplayer
- set {_player2} to "%arg 3%" parsed as offlineplayer
- clear {wymiana::%{_player}%.status}
- clear {wymiana::%{_player2}%.status}
- clear {wymiana::%{_player}%.with}
- clear {wymiana::%{_player2}%.with}
- clear {wymiana::%{_player}%.trial}
- clear {wymiana::%{_player2}%.trial}
- if "%inventory name of {_player2}'s current inventory%" contains "Wymiana z":
- set {_i} to 0
- loop 18 times:
- if {_player2}'s current inventory's slot {_i} is not air:
- give {_player2}'s current inventory's slot {_i} to {_player2}
- add 1 to {_i}
- close {_player2}'s inventory
- loop {wymiana::%{_player2}%.items::*}:
- give loop-value to {_player2}
- clear {wymiana::%{_player}%.items::*}
- clear {wymiana::%{_player2}%.items::*}
- stop
- set {_arg} to "%arg 1%" parsed as offlineplayer
- if {_arg} is player:
- send "&c* &7Nie mozesz przeprowadzic handlu z samym soba."
- stop
- if {_arg} is online:
- if distance between player and {_arg} is smaller than 5.1:
- if "%all items in player's inventory%" is "<none>":
- send "&c* &7Masz puste eq."
- stop
- if "%all items in {_arg}'s inventory%" is "<none>":
- send "&c* &7Gracz &6%{_arg}% &7ma puste eq."
- stop
- if {wymiana::%{_arg}%.status} is not set:
- set {wymiana::%{_arg}%.status} to "oczekiwanie"
- set {wymiana::%player%.status} to "gotowy"
- set {wymiana::%{_arg}%.with} to player
- set {wymiana::%player%.with} to {_arg}
- set {wymiana::%player%.expire} to 15
- set {wymiana::%{_arg}%.expire} to 15
- send "&c* &7Wyslales prosbe o handel do gracza: &6%{_arg}%" to player
- send "&c* &7Gracz: &6%player% &7wyslal prosbe do Ciebie o handel.%nl%&7Wpisz: &6/handel %player%" to {_arg}
- stop
- if {wymiana::%{_arg}%.status} is "gotowy":
- if {wymiana::%{_arg}%.with} is player:
- close {_arg}'s inventory
- clear {wymiana::%player%.expire}
- clear {wymiana::%{_arg}%.expire}
- wait 2 tick
- open chest with 2 rows named "&6Wymiana z: &r%{_arg}%" to player
- open chest with 2 rows named "&6Wymiana z: &r%player%" to {_arg}
- send "&c* &7Wloz przedmioty ktore chcesz dac dla gracza: &6%{_arg}%" to player
- send "&c* &7Wloz przedmioty ktore chcesz dac dla gracza: &6%player%" to {_arg}
- set {wymiana::%player%.status} to "setting"
- set {wymiana::%{_arg}%.status} to "setting"
- stop
- send "&c* &7Ten gracz juz zaprosil kogos do handlu.%nl%&7Wygasnie za: &c%{wymiana::%{_arg}%.expire}% sekund."
- stop
- if {wymiana::%{_arg}%.status} is "oczekiwanie":
- send "&c* &7Ten gracz juz dostal zaproszenie do handlu.%nl%&7Wygasnie za: &c%{wymiana::%{_arg}%.expire}% sekund."
- stop
- else:
- send "&c* &7Ten gracz juz prowadzi wymiane."
- stop
- send "&c* &7Ten gracz nie jest kolo Ciebie."
- stop
- send "&c* &7Tego gracza nie ma na serwerze."
- stop
- every 1 second:
- loop all players:
- if {wymiana::%loop-player%.debug} is set:
- clear {wymiana::%loop-player%.debug}
- if {wymiana::%loop-player%.expire} is larger than 0:
- remove 1 from {wymiana::%loop-player%.expire}
- else if {wymiana::%loop-player%.expire} is 0:
- clear {wymiana::%{wymiana::%loop-player%.with}%.expire}
- clear {wymiana::%{wymiana::%loop-player%.with}%.status}
- clear {wymiana::%{wymiana::%loop-player%.with}%.with}
- clear {wymiana::%loop-player%.expire}
- clear {wymiana::%loop-player%.status}
- clear {wymiana::%loop-player%.with}
- on rightclick with paper:
- if name of player's tool is "&aBanknot":
- set {_lore::*} to lore of player's tool split at "||"
- set {_int} to "%uncoloured {_lore::2}%"
- replace all "$" in {_int} with ""
- set {_int} to {_int} parsed as integer
- add {_int} to player's balance
- remove paper of unbreaking 1 named "&aBanknot" with lore "%lore of player's tool%" from player
- send "&c* &7Otrzymales &6%{_int}%$ &7z banknotu."
- stop
- stop
- on join:
- wait 3 second
- clear {wymiana::%player%.trial}
- if size of {wymiana::%player%.deposit::*} is larger than 0:
- if size of {wymiana::%player%.deposit::*} is 1:
- set {_k} to ""
- else if size of {wymiana::%player%.deposit::*} is 2 or 3 or 4:
- set {_k} to "y"
- else:
- set {_k} to "ow"
- send "&c* &7Masz &c%size of {wymiana::%player%.deposit::*}% &7przedmiot%{_k}% w depozycie.%nl%&7Odbierz je wpisujac: &6/handel odbierz"
- on quit:
- if {wymiana::%player%.status} is "setting" or "waiting" or "accept":
- set {_player2} to {wymiana::%player%.with}
- clear {wymiana::%{_player2}%.with}
- if {wymiana::%{_player2}%.status} is "setting":
- set {_i} to 0
- loop 18 times:
- if {_player2}'s current inventory's slot {_i} is not air:
- give {_player2}'s current inventory's slot {_i} to {_player2}
- add 1 to {_i}
- clear {wymiana::%{_player2}%.items}
- else:
- loop {wymiana::%{_player2}%.items::*}:
- give loop-value to {_player2}
- clear {wymiana::%{_player2}%.items::%loop-index%}
- clear {wymiana::%{_player2}%.status}
- close {_player2}'s inventory
- send "&c* &7Gracz &6%player% &7wyszedl z gry." to {_player2}
- if {wymiana::%player%.status} is "waiting" or "accept":
- loop {wymiana::%player%.items::*}:
- add loop-value to {wymiana::%player%.deposit::*}
- clear {wymiana::%player%.items::%loop-index%}
- if "%inventory name of player's current inventory%" contains "Wymiana z":
- set {_i} to 0
- loop 18 times:
- if player's current inventory's slot {_i} is not air:
- add player's current inventory's slot {_i} to {wymiana::%player%.deposit::*}
- add 1 to {_i}
- clear {wymiana::%player%.items::*}
- if {wymiana::%player%.status} is set:
- set {_player} to player
- set {_player2} to {wymiana::%player%.with}
- clear {wymiana::%{_player}%.status}
- clear {wymiana::%{_player2}%.status}
- clear {wymiana::%{_player}%.with}
- clear {wymiana::%{_player2}%.with}
- clear {wymiana::%{_player}%.trial}
- clear {wymiana::%{_player2}%.trial}
- on inventory click:
- if "%inventory name of player's current inventory%" contains "Status handlu":
- if slot is smaller than 0:
- stop
- cancel event
- #Zmien itemy..
- if player's current inventory's slot slot is brown glass:
- if name of player's current inventory's slot slot is "&6&lZmien przedmioty":
- set {wymiana::%player%.status} to "setting"
- wait 2 tick
- close player's inventory
- wait 2 tick
- open chest with 2 rows named "&1Wymiana z: &r%{wymiana::%player%.with}%" to player
- wait 2 tick
- set {_i} to 0
- loop 18 times:
- if {wymiana::%player%.items::%loop-number%} is not air:
- set player's current inventory's slot {_i} to {wymiana::%player%.items::%loop-number%}
- add 1 to {_i}
- clear {wymiana::%player%.items::*}
- if {wymiana::%{wymiana::%player%.with}%.status} is "waiting" or "accept":
- set {_i} to 50
- loop 4 times:
- set {wymiana::%player%.with}'s current inventory's slot {_i} to yellow glass named "&6&lStatus" with lore "&6Gracz &c%player%:||&c* &aUstawia swoje przedmioty"
- add 1 to {_i}
- set {_i} to 5
- loop 18 times:
- set {wymiana::%player%.with}'s current inventory's slot {_i} to air
- if "%loop-number / 4%" contains "." or ",":
- add 1 to {_i}
- else:
- add 6 to {_i}
- stop
- #Accept
- if player's current inventory's slot slot is light green glass:
- if name of player's current inventory's slot slot is "&a&lZatwierdz":
- set {wymiana::%player%.status} to "accept"
- if {wymiana::%{wymiana::%player%.with}%.status} is "accept":
- #Kod na wysylanie itemow.
- wf "[%now%] Wymiana %player% z %{wymiana::%player%.with}%:%nl% ##Itemy %player%:" to "plugins/Skript/logs/handel.log"
- send "&c* &aPomyslnie wymieniles przedmioty z: &6%{wymiana::%player%.with}%" to player
- send "&c* &aPomyslnie wymieniles przedmioty z: &6%player%" to {wymiana::%player%.with}
- set {_player} to {wymiana::%player%.with}
- loop {wymiana::%player%.items::*}:
- if length of "with lore %lore of loop-value%" is larger than 10:
- wf " - %loop-value% with lore %lore of loop-value%" to "plugins/Skript/logs/handel.log"
- else:
- wf " - %loop-value%" to "plugins/Skript/logs/handel.log"
- if {_player} has enough space for loop-value:
- add loop-value to {_player}
- else:
- add loop-value to {wymiana::%{_player}%.deposit::*}
- send "&c* &7Dodano &6%loop-value% &7do depozytu." to {_player}
- clear {wymiana::%player%.items::%loop-index%}
- wf " ##Itemy %{wymiana::%player%.with}%" to "plugins/Skript/logs/handel.log"
- loop {wymiana::%{_player}%.items::*}:
- if length of "with lore %lore of loop-value%" is larger than 10:
- wf " - %loop-value% with lore %lore of loop-value%" to "plugins/Skript/logs/handel.log"
- else:
- wf " - %loop-value%" to "plugins/Skript/logs/handel.log"
- if player has enough space for loop-value:
- add loop-value to player
- else:
- add loop-value to {wymiana::%player%.deposit::*}
- send "&c* &7Dodano &6%loop-value% &7do depozytu." to player
- clear {wymiana::%{_player}%.items::%loop-index%}
- clear {wymiana::%player%.status}
- clear {wymiana::%{wymiana::%player%.with}%.status}
- close player's inventory
- close {wymiana::%player%.with}'s inventory
- execute console command "handel break %player% %{wymiana::%player%.with}%"
- stop
- set player's current inventory's slot 46 to light green glass named "&6&lTwoj status" with lore "&aAkceptujesz"
- if {wymiana::%{wymiana::%player%.with}%.status} is "waiting":
- set {_i} to 50
- loop 4 times:
- set {wymiana::%player%.with}'s current inventory's slot {_i} to light green glass named "&6&lStatus" with lore "&6Gracz &c%player%:||&c* &aZaakceptowal wymiane"
- add 1 to {_i}
- #status = {"gotowy", "oczekiwanie", "waiting", "setting", "accept"}
- #Odrzuc
- if player's current inventory's slot slot is red glass:
- if name of player's current inventory's slot slot is "&c&lOdrzuc":
- send "&c* &7Gracz &6%player% &7odrzucil wymiane z Toba." to {wymiana::%player%.with}
- send "&c* &7Anulowales wymiane z graczem &6%{wymiana::%player%.with}%" to player
- loop {wymiana::%player%.items::*}:
- if player has enough space for loop-value:
- add loop-value to player
- else:
- add loop-value to {wymiana::%player%.deposit::*}
- send "&c* &7Dodano &6%loop-value% &7do depozytu." to player
- remove loop-value from {wymiana::%player%.items::*}
- loop {wymiana::%{wymiana::%player%.with}%.items::*}:
- if {wymiana::%player%.with} has enough space for loop-value:
- add loop-value to {wymiana::%player%.with}
- else:
- add loop-value to {wymiana::%{wymiana::%player%.with}%.deposit::*}
- send "&c* &7Dodano &6%loop-value% &7do depozytu." to {wymiana::%player%.with}
- remove loop-value from {wymiana::%{wymiana::%player%.with}%.items::*}
- clear {wymiana::%{wymiana::%player%.with}%.status}
- clear {wymiana::%{wymiana::%player%.with}%.with}
- clear {wymiana::%{wymiana::%player%.with}%.items::*}
- clear {wymiana::%player%.status}
- close {wymiana::%player%.with}'s inventory
- clear {wymiana::%player%.with}
- clear {wymiana::%player%.items::*}
- close player's inventory
- on inventory close:
- set {_l} to "&3>>"
- if "%inventory name of player's current inventory%" contains "Wymiana z":
- if {wymiana::%player%.status} is "setting":
- set {_i} to 0
- loop 18 times:
- if player's current inventory's slot {_i} is not air:
- add player's current inventory's slot {_i} to {wymiana::%player%.items::*}
- set {_exists} to true
- add 1 to {_i}
- if {_exists} is not set:
- if {wymiana::%player%.trial} is not set:
- set {wymiana::%player%.trial} to 1
- else:
- add 1 to {wymiana::%player%.trial}
- send "&c* &7Musisz cos dac dla gracza. &8(&c%{wymiana::%player%.trial}%/3&8)"
- if {wymiana::%player%.trial} is larger than or equal to 3:
- if {wymiana::%{wymiana::%player%.with}%.with} is set:
- send "&c* &7Gracz %player% &7zakonczyl wymiane z Toba." to {wymiana::%player%.with}
- send "&c* &7Zakonczyles wymiane z &6%{wymiana::%player%.with}%" to player
- execute console command "handel break %player% %{wymiana::%player%.with}%"
- stop
- wait 2 tick
- open chest with 2 rows named "&6Wymiana z: &r%{wymiana::%player%.with}%" to player
- stop
- wait 2 tick
- open chest with 6 rows named "&1&l&oStatus handlu" to player
- wait 2 tick
- set {wymiana::%player%.status} to "waiting"
- set {_i} to 4
- loop 6 times:
- set player's current inventory's slot {_i} to blue glass named "&9Przedzialka" with lore "&3<< Twoje Przedmioty||||&3Przedmioty gracza &c%{wymiana::%player%.with}% %{_l}%"
- add 9 to {_i}
- set {_i} to 50
- if {wymiana::%{wymiana::%player%.with}%.status} is "accept":
- set {wymiana::%{wymiana::%player%.with}%.status} to "waiting"
- set {wymiana::%player%.with}'s current inventory's slot 46 to white glass named "&6&lTwoj status" with lore "&aCzekasz"
- loop 4 times:
- if {wymiana::%{wymiana::%player%.with}%.status} is not "setting":
- set {wymiana::%player%.with}'s current inventory's slot {_i} to white glass named "&6&lStatus" with lore "&6Gracz &c%player%||&c* &aCzeka"
- if {wymiana::%{wymiana::%player%.with}%.status} is "setting":
- set player's current inventory's slot {_i} to yellow glass named "&6&lStatus" with lore "&6Gracz &c%{wymiana::%player%.with}%||&c* &aUstawia swoje itemy"
- if {wymiana::%{wymiana::%player%.with}%.status} is "waiting":
- set player's current inventory's slot {_i} to white glass named "&6&lStatus" with lore "&6Gracz &c%{wymiana::%player%.with}%||&c* &aCzeka"
- if {wymiana::%{wymiana::%player%.with}%.status} is "accept":
- set player's current inventory's slot {_i} to light green glass named "&6&lStatus" with lore "&6Gracz &c%{wymiana::%player%.with}%||&c* &aZaakceptowal wymiane"
- add 1 to {_i}
- add 1 to {_i}
- set player's current inventory's slot 48 to light green glass named "&a&lZatwierdz" with lore "&aKliknij aby:||&c* Zaakceptowac wymiane z graczem &6%{wymiana::%player%.with}%"
- set player's current inventory's slot 47 to red glass named "&c&lOdrzuc" with lore "&aKliknij aby:||&c*Odrzucic wymiane z graczem &6%{wymiana::%player%.with}%"
- set player's current inventory's slot 45 to brown glass named "&6&lZmien przedmioty" with lore "&aKliknij aby:||&c* Zmienic swoje przedmioty"
- set player's current inventory's slot 46 to white glass named "&6&lTwoj status" with lore "&aCzekasz"
- set {_i} to 0
- loop 18 times:
- set player's current inventory's slot {_i} to {wymiana::%player%.items::%loop-number%}
- if "%loop-number / 4%" contains "." or ",":
- add 1 to {_i}
- else:
- add 6 to {_i}
- if {wymiana::%{wymiana::%player%.with}%.status} is not "setting":
- set {_i} to 5
- loop 18 times:
- set {wymiana::%player%.with}'s current inventory's slot {_i} to {wymiana::%player%.items::%loop-number%}
- if "%loop-number / 4%" contains "." or ",":
- add 1 to {_i}
- else:
- add 6 to {_i}
- set {_i} to 5
- loop 18 times:
- set player's current inventory's slot {_i} to {wymiana::%{wymiana::%player%.with}%.items::%loop-number%}
- if "%loop-number / 4%" contains "." or ",":
- add 1 to {_i}
- else:
- add 6 to {_i}
- stop
- on inventory close:
- set {_l} to "&3>>"
- if "%inventory name of player's current inventory%" contains "Status handlu":
- if {wymiana::%player%.status} is "waiting" or "accept":
- wait 2 tick
- open chest with 6 rows named "&1&l&oStatus handlu" to player
- wait 2 tick
- set {wymiana::%player%.status} to "waiting"
- set {_i} to 4
- loop 6 times:
- set player's current inventory's slot {_i} to blue glass named "&9Przedzialka" with lore "&3<< Twoje Przedmioty||||&3Przedmioty gracza &c%{wymiana::%player%.with}% %{_l}%"
- #with lore "&3<< Twoje Przedmioty||||&3Przedmioty gracza &c%{wymiana::%player%.with}% &3>>"
- add 9 to {_i}
- set {_i} to 50
- loop 4 times:
- if {wymiana::%{wymiana::%player%.with}%.status} is not "setting":
- set {wymiana::%player%.with}'s current inventory's slot {_i} to white glass named "&6&lStatus" with lore "&6Gracz &c%player%||&c* &aCzeka"
- if {wymiana::%{wymiana::%player%.with}%.status} is "setting":
- set player's current inventory's slot {_i} to yellow glass named "&6&lStatus" with lore "&6Gracz &c%{wymiana::%player%.with}%||&c* &aUstawia swoje itemy"
- if {wymiana::%{wymiana::%player%.with}%.status} is "waiting":
- set player's current inventory's slot {_i} to white glass named "&6&lStatus" with lore "&6Gracz &c%{wymiana::%player%.with}%||&c* &aCzeka"
- if {wymiana::%{wymiana::%player%.with}%.status} is "accept":
- set player's current inventory's slot {_i} to light green glass named "&6&lStatus" with lore "&6Gracz &c%{wymiana::%player%.with}%||&c* &aZaakceptowal wymiane"
- add 1 to {_i}
- add 1 to {_i}
- set player's current inventory's slot 48 to light green glass named "&a&lZatwierdz" with lore "&aKliknij aby:||&c* Zaakceptowac wymiane z graczem &6%{wymiana::%player%.with}%"
- set player's current inventory's slot 47 to red glass named "&c&lOdrzuc" with lore "&aKliknij aby:||&c*Odrzucic wymiane z graczem &6%{wymiana::%player%.with}%"
- set player's current inventory's slot 45 to brown glass named "&6&lZmien przedmioty" with lore "&aKliknij aby:||&c* Zmienic swoje przedmioty"
- set {_i} to 0
- loop 18 times:
- set player's current inventory's slot {_i} to {wymiana::%player%.items::%loop-number%}
- if "%loop-number / 4%" contains "." or ",":
- add 1 to {_i}
- else:
- add 6 to {_i}
- if {wymiana::%{wymiana::%player%.with}%.status} is not "setting":
- set {_i} to 5
- loop 18 times:
- set {wymiana::%player%.with}'s current inventory's slot {_i} to {wymiana::%player%.items::%loop-number%}
- if "%loop-number / 4%" contains "." or ",":
- add 1 to {_i}
- else:
- add 6 to {_i}
- set {_i} to 5
- loop 18 times:
- set player's current inventory's slot {_i} to {wymiana::%{wymiana::%player%.with}%.items::%loop-number%}
- if "%loop-number / 4%" contains "." or ",":
- add 1 to {_i}
- else:
- add 6 to {_i}
- if {wymiana::%player%.status} is "accept":
- set player's current inventory's slot 46 to light green glass named "&6&lTwoj status" with lore "&aAkceptujesz"
- if {wymiana::%player%.status} is "waiting":
- set player's current inventory's slot 46 to white glass named "&6&lTwoj status" with lore "&aCzekasz"
- on drop:
- if {wymiana::%player%.status} is "setting":
- cancel event
- command /generuj:
- permission: admin.panel
- trigger:
- set {1} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
- set {2} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
- set {3} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
- set {4} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
- set {5} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
- set {6} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
- set {7} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
- set {8} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
- set {9} to 0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9
- set {kod} to "%{1}%%{2}%%{3}%%{4}%%{5}%%{6}%%{7}%%{8}%%{9}%"
- send "&7Kto pierwszy wpisze kod, wygrywa! &c&l&o/kod <kod>&7: &c&l&o %{kod}%" to all players
- command /kod [<text>]:
- trigger:
- if arg contain "%{kod}%":
- delete {kod}
- execute console command "give %player% goldenapple:2 1 " or "give %player% goldenapple 1" or "give %player% diamond 1"
- send "&7Gracz &c&l&o%player% &7wpisal jako pierwszy kod!" to all players
- send "&7Otrzymales nagrode sprawdz ekwipunek!"
- else:
- send "&7Zle wpisales kod lub jest on juz wykorzystany!"
- #BANY============================================================================================================
- command /ban [<offlineplayer>] [<text>]:
- permission: {@pexAD}
- permission message: "{@pexMsg}"
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- if file "plugins/Skript/scripts/Maracana/bany/%arg 1%.yml" doesn't exists:
- create file "plugins/Skript/scripts/Maracana/bany/%arg 1%.yml"
- if sender is not console:
- set {_b} to "%player%"
- else:
- set {_b} to "CONSOLE"
- set {_powod} to arg 2
- set {_player} to arg 1
- set {_y} to "%year%"
- set {_m} to "%month%"
- set {_d} to "%day%"
- set {_h} to "%hour%"
- set {_m} to "%minute%"
- set {_c} to "%{_y}%.%{_m}%.%{_d}% %{_h}%:%{_m}%"
- kick arg 1 due to "&8=====%nl%&3Zostales &7permamentnie &3zbanowany!%nl%&3Zbanowal: &7%{_b}%%nl%&3Powod: &7%{_powod}%%nl%&3Data nadania: &7%{_c}%%nl%&8====="
- broadcast "{@logo} &eGracz &c%arg 1% &ezostal zbanowany przez &7%player%"
- set yaml value "ban.admin" from "Maracana/bany/%arg 1%.yml" to "%{_b}%"
- set yaml value "ban.gracz" from "Maracana/bany/%arg 1%.yml" to "%{_player}%"
- set yaml value "ban.data" from "Maracana/bany/%arg 1%.yml" to "%{_c}%"
- set yaml value "ban.typ" from "Maracana/bany/%arg 1%.yml" to "PERM"
- set yaml value "ban.powod" from "Maracana/bany/%arg 1%.yml" to "%{_powod}%"
- if offlineplayer-arg 1 is offline:
- send "&8>> &bZbanowales gracza &cofline: &7%arg 1% &b za: &7%arg 2%"
- else:
- send "&8>> &bZbanowales gracza: &7%arg 1% &b za: &7%arg 2%"
- stop
- else:
- send "&8>> &cTen gracz jest juz zbanowany!"
- stop
- else:
- send "&8>> &cPoprawne uzycie: &7/ban <gracz> <powod>"
- stop
- else:
- send "&8>> &cPoprawne uzycie: &7/ban <gracz> <powod>"
- stop
- command /unban [<offlineplayer>] [<text>]:
- permission: {@pexAD}
- permission message: "{@pexMsg}"
- trigger:
- if arg 1 is set:
- if file "plugins/Skript/scripts/Maracana/bany/%arg 1%.yml" exists:
- if sender is not console:
- set {_b} to "%player%"
- else:
- set {_b} to "CONSOLE"
- delete file "plugins/Skript/scripts/Maracana/bany/%arg 1%.yml"
- send "&8>> &aOdbanowales gracza: &e%arg 1%&a!"
- broadcast "&8>> &eGracz &c%arg 1% &ezostal odbanowany przez &7%{_b}%"
- stop
- else:
- send "&8>> &cTen gracz nie jest zbanowany!"
- stop
- else:
- send "&8>> &cMusisz podac nick gracza ktorego chcesz odbanowac!"
- stop
- #KICK============================================================================================================
- command /kick [<offlineplayer>] [<text>]:
- permission: {@pexAD}
- permission message: "{@pexMsg}"
- trigger:
- if arg 1 is set:
- if arg 1 isn't "%player%":
- if offlineplayer-arg 1 is online:
- set {_b} to "%player%"
- if arg 2 is set:
- send "&8>> &3Wyrzuciles gracza &e%arg 1% &3za: &7%arg 2%"
- set {_powod} to arg 2
- else:
- send "&8>> &3Wyrzuciles gracza &e%arg 1% &3bez podanego powodu."
- set {_powod} to "Nie podano"
- kick offlineplayer-arg due to "&8=====%nl%&3Zostales &7wyrzucony &3z serwera!%nl%&3Wyrzucil: &7%{_b}%%nl%&3Powod: &7%{_powod}%%nl%&8====="
- stop
- else:
- send "&8>> &cPodany gracz jest offline."
- stop
- else:
- send "&8>> &cNie mozesz wyrzucic samego siebie!"
- stop
- else:
- send "&8>> &cMusisz podac kogo chcesz wyrzucic!"
- stop
- #MUTY============================================================================================================
- command /mute [<offlineplayer>] [<text>]: #todo czasowe
- permission: {@pexAD}
- permission message: "{@pexMsg}"
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- if file "plugins/Skript/scripts/Maracana/muty/%arg 1%.yml" doesn't exists:
- if offlineplayer-arg don't have permissions "helper":
- if arg 1 isn't "%player%":
- create file "plugins/Skript/scripts/Maracana/muty/%arg 1%.yml"
- if sender is not console:
- set {_b} to "%player%"
- else:
- set {_b} to "CONSOLE"
- set {_y} to "%year%"
- set {_m} to "%month%"
- set {_d} to "%day%"
- set {_h} to "%hour%"
- set {_m} to "%minute%"
- set {_c} to "%{_y}%.%{_m}%.%{_d}% %{_h}%:%{_m}%"
- set yaml value "mute.gracz" from "Maracana/muty/%arg 1%.yml" to "%arg 1%"
- set yaml value "mute.admin" from "Maracana/muty/%arg 1%.yml" to "%player%"
- set yaml value "mute.powod" from "Maracana/muty/%arg 1%.yml" to "%arg 2%"
- set yaml value "mute.data" from "Maracana/muty/%arg 1%.yml" to "%{_c}%"
- send "&8>> &3Wyciszyles gracza &e%arg 1% &3z powodem: &7%arg 2%"
- send "&8>> &cZostales wyciszony przez &7%{_b}% za: &4&l%arg 2%" to offlineplayer-arg 1
- stop
- else:
- send "&8>> &cNie mozesz wyciszyc samego siebie!"
- stop
- else:
- send "&8>> &cNie mozesz wyciszyc admina!"
- send "&8>> &cAdmin &7%player% &cchcial Cie wyciszyc!" to offlineplayer-arg 1
- stop
- else:
- send "&8>> &cTen gracz jest juz wyciszony!"
- stop
- else:
- send "&8>> &cPoprawne uzycie: &7/mute <gracz> <powod>"
- stop
- else:
- send "&8>> &cPoprawne uzycie: &7/mute <gracz> <powod>"
- stop
- #UNMUTE============================================================================================================
- command /unmute [<offlineplayer>] [<text>]:
- permission: {@pexAD}
- permission message: "{@pexMsg}"
- trigger:
- if arg 1 is set:
- if file "plugins/Skript/scripts/Maracana/muty/%arg 1%.yml" exists:
- if sender is not console:
- set {_b} to "%player%"
- else:
- set {_b} to "CONSOLE"
- delete file "plugins/Skript/scripts/Maracana/muty/%arg 1%.yml"
- send "&8>> &aOdciszyles gracza gracza: &e%arg 1%&a!"
- send "&8>> &bMozesz znow mowic dzieki &7%{_b}%!" to offlineplayer-arg 1
- stop
- else:
- send "&8>> &cTen gracz nie jest wyciszony!"
- stop
- else:
- send "&8>> &cMusisz podac nick gracza ktorego chcesz odciszyc!"
- stop
- #EVENTY============================================================================================================
- #on join
- on chat:
- if player don't have permission "helper":
- if file "plugins/Skript/scripts/Maracana/muty/%player%.yml" exists:
- send "&8>> &7Jestes aktualnie wyciszony, wiec nie mozesz pisac!"
- cancel event
- command /spr [<text>] [<offlineplayer>]:
- aliases: sprawdz
- trigger:
- if player has permission "{@pex}":
- if arg 1 isn't set:
- send "&6&m=========="
- send "&e/spr help &7- wysyla te wiadomosc"
- send "&e/spr wezwij <gracz> &7- wzywa gracza na sprawdzanie"
- send "&e/spr czysty <gracz> &7- oznacza gracza jako czystego"
- send "&e/spr cheaty <gracz> &7- banuje gracza za cheaty"
- send "&e/spr wspolpraca <gracz> &7- banuje gracz za brak wspolpracy"
- send "&6&lKOMENDY ADMINA:"
- send "&c/spr ustawklatka &7- ustawia miejsce klatki do sprawdzania"
- send "&c/spr ustawspawn &7- ustawia miejsce spawnu po sprawdzaniu"
- send "&6&m=========="
- stop
- if arg 1 is "help" or "wezwij" or "czysty" or "cheaty" or "wspolpraca" or "ustawspawn" or "ustawklatka":
- if arg 1 is "help":
- send "&6&m=========="
- send "&e/spr help &7- wysyla te wiadomosc"
- send "&e/spr wezwij <gracz> &7- wzywa gracza na sprawdzanie"
- send "&e/spr czysty <gracz> &7- oznacza gracza jako czystego"
- send "&e/spr cheaty <gracz> &7- banuje gracza za cheaty"
- send "&e/spr wspolpraca <gracz> &7- banuje gracz za brak wspolpracy"
- send "&6&lKOMENDY ADMINA:"
- send "&c/spr ustawklatka &7- ustawia miejsce klatki do sprawdzania"
- send "&c/spr ustawspawn &7- ustawia miejsce spawnu po sprawdzaniu"
- send "&6&m=========="
- stop
- if arg 1 is "wezwij":
- if arg 2 is set:
- set {_sprawdzany} to arg 2
- if {_sprawdzany} is online:
- if {spr::%arg 2%} isn't set:
- if {k.location} is set:
- if {s.location} is set:
- if arg 2 isn't player:
- if {_sprawdzany} don't have permission "{@pex}":
- set {skadtp::%arg 2%} to {_sprawdzany}'s location
- wait 2 ticks
- set {spr::%arg 2%} to true
- set {sprawdzajacy::%arg 2%} to player
- teleport {_sprawdzany} to {k.location}
- teleport player to {k.location}
- send "&8>> &eWezwales gracza &7%arg 2% &ena sprawdzanie!" to player
- send " " to arg 2
- send "&7&m=========%nl%&eJestes sprawdzany!%nl%&cWylogujesz sie = PERM%nl%&7&m=========" to arg 2
- send " " to arg 2
- send json of "{@tag} &cPrzyznaje &csie &cdo &ccheatow!" tooltip "&7>> &eGdy to nacisniesz zostaniesz zbanowany!" run "/tempban %player% {@set.czasPrzyznanie} Przyznanie(system)" to arg 2
- broadcast "{@tag} &eGracz &7%arg 2% &ezostal wezwany na sprawdzanie przez &c%player%"
- else:
- send "&8>> &cNie mozesz wezwac admina!"
- stop
- else:
- send "&8>> &cNie mozesz wezwac samego siebie!"
- stop
- else:
- send "&8>> &cLokacja spawnu nie jest ustawiona!"
- stop
- else:
- send "&8>> &cLokacja klatki nie jest ustawiona!"
- stop
- else:
- send "&8>> &cTen gracz jest juz sprawdzany"
- else:
- send "&8>> &cTen gracz jest offline."
- stop
- else:
- send "&8>> &cPoprawne uzycie: &7/spr wezwij <gracz>"
- stop
- if arg 1 is "czysty":
- if arg 2 is set:
- if {spr::%arg 2%} is set:
- clear {spr::%arg 2%}
- clear {sprawdzajacy::%arg 2%}
- teleport arg 2 to {skadtp::%arg 2%}
- teleport player to {s.location}
- send "&8>> &bZostales uznany za &7czystego &bprzez &7%player%" to arg 2
- send "&8>> &aUznales gracza &7%arg 2% &aza czystego." to player
- broadcast "{@tag} &eGracz &7%arg 2% &ezostal uznany za czystego przez &c%player%"
- stop
- else:
- send "&8>> &cTen gracz nie jest aktualnie sprawdzany!"
- stop
- else:
- send "&8>> &cMusisz podac nick gracza."
- stop
- if arg 1 is "cheaty":
- if arg 2 is set:
- if {spr::%arg 2%} is set:
- clear {spr::%arg 2%}
- clear {sprawdzajacy::%arg 2%}
- kill arg 2
- teleport arg 2 to {s.location}
- teleport player to {s.location}
- send "&8>> &aZbanowales gracza &7%arg 2% &aza &ccheaty(sprawdzanie)"
- execute console command "/tempban %arg 2% {@set.czasCheaty} Cheaty(sprawdzanie)"
- stop
- else:
- send "&8>> &cTen gracz nie jest aktualnie sprawdzany!"
- stop
- else:
- send "&8>> &cMusisz podac nick gracza."
- stop
- if arg 1 is "wspolpraca":
- if arg 2 is set:
- if {spr::%arg 2%} is set:
- clear {spr::%arg 2%}
- clear {sprawdzajacy::%arg 2%}
- kill arg 2
- teleport arg 2 to {s.location}
- teleport player to {s.location}
- send "&8>> &aZbanowales gracza &7%arg 2% &aza &cbrak wspolpracy(sprawdzanie)"
- execute console command "/tempban %arg 2% {@set.czasWspolpraca} Brak Wspolpracy(sprawdzanie)"
- stop
- else:
- send "&8>> &cTen gracz nie jest aktualnie sprawdzany!"
- stop
- else:
- send "&8>> &cMusisz podac nick gracza."
- stop
- if arg 1 is "ustawspawn":
- if player has permission "{@pex2}":
- set {s.location} to player's location
- send "&8>> &aPrawidlowo ustawiles miejsce spawnu."
- else:
- send "&8>> &cMusisz miec uprawnienie admina."
- stop
- if arg 1 is "ustawklatka":
- if player has permission "{@pex2}":
- set {k.location} to player's location
- send "&8>> &aPrawidlowo ustawiles miejsce klatki do sprawdzania."
- else:
- send "&8>> &cMusisz miec uprawnienie admina."
- stop
- else:
- send "&8>> &cAby uzyskac pomoc wpisz &7/spr help"
- stop
- else:
- send "{@w.pex}"
- stop
- #EVENTY
- on rightclick with ender pearl:
- if {spr::%player%} is set:
- cancel event
- send "&8>> &7Nie mozesz uzywac perel podczas sprawdzania"
- on command:
- if {spr::%player%} is set:
- if command isn't "msg" or "r" or "helpop":
- cancel event
- send "&8>> &7Jestes sprawdzany, nie mozesz uzywac komend."
- on quit:
- if {spr::%player%} is set:
- send json of "{@tag} &c&lGRACZ &c&lKTOREGO &c&lSPRAWDZASZ WYLOGOWAL SIE" tooltip "&8>> &eNACISNIJ ABY ZBANOWAC" run "/tempban %player% {@set.czasLogout} Logout(sprawdzanie)." to {sprawdzajacy::%player%}
- command /mlag [<text>] [<text>]:
- trigger:
- if arg 1 isn't "sprawdz" or "otchlan" or "":
- if player doesn't have permission "mlag.admin":
- set {Infoz} to {Info}
- replace all "|tresc|" in {Infoz} with "mlag.admin"
- send "%{Tag}%%{Kolor}% Nie posiadasz uprawnien do tej komendy. %{Infoz}%"
- if arg 1 is "czysc":
- loop 54 times:
- set slot loop-number - 1 of block at {lag::otchlan::ustawiona} to air
- set {lag::licznik} to 0
- loop all entities:
- if loop-entity is a dropped item:
- set {_} to items within loop-entity
- set {_} to "%loop-entity%" parsed as an item
- set {lag::licznik} to {lag::licznik}+1
- set {lag::item::%{lag::licznik}%} to {_}
- delete loop-entity
- set {lag::otchlan::stan} to true
- set {Infoz} to {Info}
- replace all "|tresc|" in {Infoz} with "%player%"
- broadcast "%{Tag}%%{Kolor}% Zostalo wymuszone usuniecie itemow z ziemi przez administratora. %{Infoz}%"
- broadcast "%{Tag}%%{Kolor}% W otchlani pojawily się usunięte przedmioty. "
- loop {lag::licznik} times:
- add {lag::item::%loop-number%} to inventory of block at {lag::otchlan::ustawiona}
- if arg 1 is "otchlan":
- open the inventory of the block at {lag::otchlan::ustawiona} to the player
- send "%{Tag}%%{Kolor}% Otworzyles otchlan."
- if arg 1 is "ustaw":
- if arg 2 is "skrzynia":
- set {_x} to random integer between 0 and 10000
- set {_y} to 255
- set {_z} to random integer between 1 and 10000
- set {_c} to location at {_x}, {_y}, {_z}
- set block at {_c} to chest
- set block east {_c} to chest
- set {lag::otchlan::ustawiona} to location of {_c}
- send "%{Tag}%%{Kolor}% Skrzynia została postawiona na koordynatach: %{lag::otchlan::ustawiona}%"
- if arg 1 is "sprawdz":
- send "%{Tag}%%{Kolor}% Do nastepnego usuwania itemow pozostało %{lag::czas}% sekund."
- if arg 1 is "reset":
- set {Infoz} to {Info}
- replace all "|tresc|" in {Infoz} with "%{czas}% sekund"
- send "%{Tag}%%{Kolor}% Resetowano czas odliczania %{Infoz}%"
- if arg 1 isn't set:
- send "%{Tag}% %{Kolor}%- &5Skrypt na otchlan by Michma1707" #Jedyny punkt licencji: Zabraniam zmieniania tego nagłówku ;<!#
- send "%{Kolor}%mlag sprawdz &6-%{kolor}% pokazuje czas do nastepnego usuwania itemĂłw"
- send "%{Kolor}%otchlan &6-%{kolor}% otwiera otchlan"
- if player has permission "mlag.admin":
- send "&cKomendy administratora:"
- send "%{Kolor}%mlag ustaw skrzynia &c-%{kolor}% generuje skrzynie do ktorej trafiaja itemy z otchlani"
- send "%{Kolor}%mlag reset &c-%{kolor}% resetuje odliczanie do nastepnego auto odliczania"
- send "%{Kolor}%mlag czysc &c-%{kolor}% wymusza usuwania itemow"
- every 1 seconds:
- if {lag::czas} = 0:
- set {lag::czas} to {Czas} parsed as integer
- broadcast "%{Tag}%%{Kolor}% Za &c10 sekund%{kolor}% itemy lezace na ziemi zostana przeniesione do otchlani"
- wait 10 seconds
- loop 54 times:
- set slot loop-number - 1 of block at {lag::otchlan::ustawiona} to air
- set {lag::licznik} to 0
- loop all entities:
- if loop-entity is a dropped item:
- set {_} to items within loop-entity
- set {_} to "%loop-entity%" parsed as an item
- set {lag::licznik} to {lag::licznik}+1
- set {lag::item::%{lag::licznik}%} to {_}
- delete loop-entity
- set {lag::otchlan::stan} to true
- loop {lag::licznik} times:
- add {lag::item::%loop-number%} to inventory of block at {lag::otchlan::ustawiona}
- broadcast "%{Tag}%%{Kolor}% Do otchlani zostały przeniesione usunięte itemy."
- else:
- set {lag::czas} to {lag::czas}-1
- command /otchlan:
- trigger:
- open the inventory of the block at {lag::otchlan::ustawiona} to the player
- send "%{Tag}%%{Kolor}% Otworzyles otchlan."
- on load:
- if {lag::otchlan::ustawiona} isn't set:
- execute console command "/clearlag ustaw skrzynia"
- #YMl#
- if file "plugins/mOtchlan/config.yml" doesn't exists:
- create file "plugins/mOtchlan/config.yml"
- set "Tag" to "&8[&2m&5Otchlan&8]" in yaml file "plugins/mOtchlan/config.yml"
- set "Kolor" to "&7" in yaml file "plugins/mOtchlan/config.yml"
- set "Czas" to "120" in yaml file "plugins/mOtchlan/config.yml"
- set "Informacja" to "&8(&c|tresc|&8)" in yaml file "plugins/mOtchlan/config.yml"
- set {Tag} to single value "Tag" get of "plugins/mOtchlan/config.yml"
- set {Kolor} to single value "Kolor" get of "plugins/mOtchlan/config.yml"
- set {Czas} to single value "Czas" get of "plugins/mOtchlan/config.yml"
- set {Info} to single value "Informacja" get of "plugins/mOtchlan/config.yml"
Advertisement
Add Comment
Please, Sign In to add comment