on chat: if {_confirmation::%player%} is true: cancel event set {_message} command /plot [] [] []: aliases: dzialka, dzialki, plots executable by: player trigger: if arg 1 is not set: if player has permission "xplots.author.info": send "&8 __ &5&lxPlots &8__ " to player send "&7" to player send "&5&l* &fAutorem pluginu jest&8: &d_xKubus_" to player send "&5&l* &fWszystkie informacje znajdziesz" to player send "&5&l* &fPod komendą &d/plots pomoc" to player send "&7" to player else: send "&5&lxPlots &8| &fInformacje pod /plot pomoc" to player if arg 1 is "pomoc" or "help": if player has permission "xplots.admin.help": send "&8 __ &5&lxPlots &8__ " to player send "&8" send "&5&l* &fTworzenie działki &8> &d/plot stworz" send "&5&l* &fUsuwanie działki &8> &d/plot usun" send "&5&l* &fPanel edycji &8> &d/plot panel" send "&5&l* &fUstawienia działki &8> &d/plot ustawienia" send "&5&l* &fLista graczy dodanych &8> &d/plot lista" send "&5&l* &fLimity na działce &8> &d/plot limity" send "&5&l* &fUsuwanie dodanych graczy &8> &d/plot wyrzuć" send "&5&l* &fZapraszanie graczy &8> &d/plot zapros" send "&5&l* &fUprawnienia osob &8> &d/plot uprawnienia" send "&5&l* &fRangi na działce &8> &d/plot rangi" send "&5&l* &fTeleportacja na działke &8> &d/plot dom" send "&5&l* &fPowiększanie działki &8> &d/plot powiększ" send "&5&l* &fBloki z punktami &8> &d/plot bloki" send "&5&l* &fNajlepsze działki &8> &d/plot topka" send "&5&l* &fInformacje o komendach &8> &d/plot pomoc" send "&8" send "&4&l* &fUsuwanie działek innych &8> &c/plot admin usun" send "&4&l* &fEdycja działek innych &8> &c/plot admin edytuj" send "&4&l* &fTeleportacja na wybraną działkę &8> &c/plot admin dzialka" send "&8" else: send "&8 __ &5&lxPlots &8__ " to player send "&8" send "&5&l* &fTworzenie działki &8> &d/plot stworz" send "&5&l* &fUsuwanie działki &8> &d/plot usun" send "&5&l* &fPanel edycji &8> &d/plot panel" send "&5&l* &fUstawienia działki &8> &d/plot ustawienia" send "&5&l* &fLista graczy dodanych &8> &d/plot lista" send "&5&l* &fLimity na działce &8> &d/plot limity" send "&5&l* &fUsuwanie dodanych graczy &8> &d/plot wyrzuć" send "&5&l* &fZapraszanie graczy &8> &d/plot zapros" send "&5&l* &fUprawnienia osob &8> &d/plot uprawnienia" send "&5&l* &fRangi na działce &8> &d/plot rangi" send "&5&l* &fTeleportacja na działke &8> &d/plot dom" send "&5&l* &fPowiększanie działki &8> &d/plot powiększ" send "&5&l* &fBloki z punktami &8> &d/plot bloki" send "&5&l* &fNajlepsze działki &8> &d/plot topka" send "&5&l* &fInformacje o komendach &8> &d/plot pomoc" send "&8" if arg 1 is "stworz" or "create": if arg 2 is set: set {_name} to arg 2 loop {_plots::all::created}: if loop-value is {_dzialka::%player%::%{name}%}: send "&4&l* &cDziałka o takiej nazwie już istnieje" to player else: if {_dzialka::%player%} is set: send "&4&l* &cMasz już działkę" else: if player has permission "xplots.plot.create": send "&2&l* &aTworzenie działki proszę czekać...." to player set {_dzialki::chunk::%chunk at player%} to player set {_dzialki::dom::%player%} to location of player add {_dzialka::%player%::%arg 2%} to {_plots::all::created} send "&2&l* &aPomyślnie stworzono działkę!" to player else: send "&4&l* &cBrak uprawnień" to player else: send "&4&l* &cPodaj nazwę działki" if arg 1 is "usun" or "delete": if arg 2 is set: set {_name} to arg 2 loop {_plots::all::created}: if loop-value is {_dzialka::%player%::%{name}%}: if player has permission "xplots.plot.delete": set {_r} to "" loop argument 1 parsed as integer times: set {_r} to "%{_r}%%{characters::%random integer between 1 and 62%}%" send title "&5&l* &dPotwierdź usuwanie &5&l*" with subtitle "&fWpisz na chacie &d%{_r}%" to player set {_confirm::code} to {_r} set {_confirmation::%player%} to true send "&5&l* &dNa przepisanie kodu masz 15 sekund" to player wait 15 seconds if {_confirmation::%player%} is true: send "&4&l* &cMinął czas na potwierdzenie kodu captcha" to player set {_confirmation::%player%} to false stop else: stop else: send "&4&l* &cBrak uprawnień!" to player else: send "&4&l* &cNie posiadasz dzialki z taką nazwą" to player else: send "&4&l* &cMusisz podać nazwę działki!" to player send "&2&l* &aUsuwanie działki...." to player clear {_dzialki::dom::%player%} clear {_dzialki::chunk::%chunk at player%} clear {_dzialki::chunks::%player%} clear {_dzialki::players::%arg 2%} clear {_dzialki::settings} remove {_dzialka::%player%::%arg 2%} from {_plots::all::created} send "&2&l* &aUsunięto działkę!" to player