on chat: if {_confirmation::%player%} is true: cancel event set {_message} to %arg 1% if {_message} = {_r}: set {_confirmation::%player%} to false send "&2&l* &aPrzeszedłeś weryfikację kodu!" to player wait 1 seconds 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 else: send "&4&l* &cWpisano błędny kod! Aby usunąć powtórz komendę" to player 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} set {_dzialka::%player%} to true 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 times: set {_r} to "%{characters::%random integer between 1001 and 9999%}%" 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 # # # # # # # # # < 8 else: # # # # # # # # # < 17 send "&4&l* &cNie posiadasz dzialki z taką nazwą" to player # # # # # # # # # < 26 else: # # # # # # # # # < 35 send "&4&l* &cMusisz podać nazwę działki!" to player # # # # # # # # # < 44 # # # # # # # # # < 53 if arg 1 is "panel": if {_dzialka::%player%} is true: if player has permission "xplots.plot.panel": set {_main} to chest inventory with 6 rows named "&5&l* &dDziałka &8-> &fMenu Główne &5&l*" set slot [integers between 0 and 53] of {_main} to gray stained glass pane named "&7" set slot 49 of {_main} to barrier named "&c&lᴢᴀᴍᴋɴɪᴊ" with lore "&8&l| &fᴋʟɪᴋɴɪᴊ ᴛᴜᴛᴀᴊ ᴀʙʏ%nl%&8&l| &fᴢᴀᴍᴋɴᴀᴄ ᴛᴏ ᴍᴇɴᴜ" set slot 10 of {_main} to player head named "&d&lʟɪsᴛᴀ ɢʀᴀᴄᴢʏ" with lore "&8&l| &fᴋʟɪᴋɴɪᴊ ᴛᴜᴛᴀᴊ ᴀʙʏ%nl%&8&l| &fᴢᴏʙᴀᴄᴢʏᴄ ᴅᴏᴅᴀɴʏᴄʜ ɢᴀᴄᴢʏ" set slot 12 of {_main} to book and quill named "&d&lᴜsᴛᴀᴡɪᴇɴɪᴀ" with lore "&8&l| &fᴋʟɪᴋɴɪᴊ ᴛᴜᴛᴀᴊ ᴀʙʏ%nl%&8&l| &fᴇᴅʏᴛᴏᴡᴀᴄ ᴜsᴛᴀᴡɪᴇɴɪᴀ" set slot 14 of {_main} to ender pearl named "&d&lᴛᴇʟᴇᴘᴏʀᴛᴀᴄᴊᴀ" with lore "&8&l| &fᴋʟɪᴋɴɪᴊ ᴛᴜᴛᴀᴊ ᴀʙʏ%nl%&8&l| &fᴘʀᴢᴇᴊsᴄ ɴᴀ ᴅᴢɪᴀʟᴋᴇ" set slot 16 of {_main} to sunflower named "&d&lʙᴀɴᴋ ᴅᴢɪᴀʟᴋɪ" with lore "&8&l| &fᴋʟɪᴋɴɪᴊ ᴛᴜᴛᴀᴊ ᴀʙʏ%nl%&8&l| &fᴏᴛᴡᴏʀᴢʏᴄ ʙᴀɴᴋ" set slot 28 of {_main} to iron ingot named "&d&lʟɪᴍɪᴛʏ ᴅᴢɪᴀʟᴋɪ" with lore "&8&l| &fᴋʟɪᴋɴɪᴊ ᴛᴜᴛᴀᴊ ᴀʙʏ%nl%&8&l| &fᴘᴏᴡɪᴇᴋsᴢʏᴄ ʟɪᴍɪᴛʏ" set slot 30 of {_main} to light gray dye named "&d&lᴋᴏᴍᴇɴᴅʏ" with lore "&8&l| &fᴋʟɪᴋɴɪᴊ ᴛᴜᴛᴀᴊ ᴀʙʏ%nl%&8&l| &fᴢᴏʙᴀᴄᴢʏᴄ ʟɪsᴛᴇ ᴋᴏᴍᴇɴᴅ" set slot 32 of {_main} to slime ball named "&d&lᴘᴏᴡɪᴇᴋsᴢᴀɴɪᴇ ᴅᴢɪᴀʟᴋɪ" with lore "&8&l| &fᴋʟɪᴋɴɪᴊ ᴛᴜᴛᴀᴊ ᴀʙʏ%nl%&8&l| &fᴘᴏᴡɪᴇᴋsᴢʏᴄ ᴅᴢɪᴀʟᴋᴇ" set slot 34 of {_main} to feather named "&d&lᴄʜᴀᴛ ᴅᴢɪᴀʟᴋɪ" with lore "&8&l| &fᴋʟɪᴋɴɪᴊ ᴛᴜᴛᴀᴊ ᴀʙʏ%nl%&8&l| &fᴢᴍɪᴇɴɪᴄ ᴄʜᴀᴛ ᴅᴢɪᴀʟᴋɪ" open {_main} to player