# ================== { sHomes } ================== # # # # { Autor SpokoLudek } # # { W pełni konfigurowalny skrypt na domy } # # { Poradnik (LINKI) } # # # # ================== { sHome } ================== # on load: send "&b ██████╗ ██╗ ██╗ █████╗ ███╗ ███╗ ███████╗ ██████╗ &7Ładowanie:" to console # # # # # # # # # < 8 send "&b██╔════╝ ██║ ██║ ██╔══██╗ ████╗ ████║ ██╔════╝ ██╔════╝ &7Komend" to console # - - - - - - - # < 17 send "&b╚█████╗ ███████║ ██║ ██║ ██╔████╔██║ █████╗ ╚█████╗ &7Domów" to console # - - - - - - - # < 26 send "&b ╚═══██╗ ██╔══██║ ██║ ██║ ██║╚██╔╝██║ ██╔══╝ ╚═══██╗ &7Permisji" to console # - - - - - - - # < 35 send "&b██████╔╝ ██║ ██║ ╚█████╔╝ ██║ ╚═╝ ██║ ███████╗ ██████╔╝ &7Czekaj.." to console # - - - - - - - # < 44 send "&b╚═════╝ ╚═╝ ╚═╝ ╚════╝ ╚═╝ ╚═╝ ╚══════╝ ╚═════╝ &aGotowe!" to console # # # # # # # # # < 53 command /home [] [] []: aliases: dom, domy, homes permission: home.commands.player permission message: &c&lX &8-> &7Nie posidasz uprawnień do tej komendy trigger: if arg 1 is not set: execute player command "home open" if arg 1 is "open": if player has permission "homes.gui.open": set {_homeGUI} to chest inventory with 6 rows named "&bsHomes &8-> &fMenu główne" set slot 0 and 8 and 45 and 53 of {_homeGUI} to blue stained glass pane named "&9" set slot 1 and 7 and 46 and 52 of {_homeGUI} to light blue stained glass pane named "&b" set slot 2 and 6 and 47 and 51 of {_homeGUI} to white stained glass pane named "&f" set slot 49 of {_homeGUI} to barrier named "&c&lWyjście" with lore "&8&l| &7Kliknij aby wyjść%nl%&8&l| &7z tego menu" set {_slot} to 18 loop {_homes::%player%::*}: if loop-value is > 0: set {_count} to loop-value if {_count} is =< 18: set {_name} to 1 loop {_count} times: set slot {_slot} of {_homeGUI} to light blue dye named "&b&lDom &f#&b%{_name}%" with lore "&8&l| &7Nazwa: &f%{_homes::name::%player%::*}%nl%&8&l| &7Kliknij LPM aby przeteleportowac sie tam%nl%&8&l| &7Kliknij LPM aby usunąć dom" add 1 to {_slot} add 1 to {_name} open {_homeGUI} to player else: send "%{_noPerms}%" to player if arg 1 is "sethome": if arg 2 is set: set {_name} to arg 2 replace every "_" with " " in {_name} replace every "" with " " in {_name} if {_homes::names::%player%::*} will not contains "%{_name}%": if block under player is not lava or air or water: if {_homes::%player%::*} is < 18: if player has permission "homes.set": set {_homes::cords::%player%::%{_name}%::*} to player's coords add 1 to {_homes::%player%::*} send "&8[&b&lsHomes&8] &7-> &aStworzono &7nowy dom o nazwie &f%{_name}%" to player set {_homes::name::%player%::*} to {_name} else: send "&c&lX &8-> &7Nie posiadasz uprawnień do tej komendy" to player else: send "&8[&b&lsHomes&8] &7-> &cPosidasz &7maksymalną ilość domów" to player else: send "&8[&b&lsHomes&8] &7-> &cNie możesz &7stworzyć domu w tym miejscu" to player else: send "&8[&b&lsHomes&8] &7-> &cTaki dom &7już istnieje" to player else: send "&8[&b&lsHomes&8] &7-> &cMusisz &7podać nazwę domu" if arg 1 is "delhome": if arg 2 is set: if player has permission "homes.delhome":