Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*
- #| Skrypt by MrPatryk07 |
- #| Nazwa: Dzialki |
- #| Opis: |
- #| Za pomoca cmd robi dzialke 8x8x8 ale trzeba byc w odleglosci od [wczesniej ustawionego] spawnu 50kratek. |
- #| Komendy: /d zaloz, usun, tp, setspawn, pomoc. Trzeba miec permission dzialki.admin aby ustawic ,,spawn dla dzialek"|
- #| Wersja: 1.5
- #*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-*
- options:
- logo: &e-==== &6&lDzialki &e====- # Co ma pisać w naglowku w komendach.
- ogrodzenie: fence #Blok, z którego bedzie robione ogrodzenie.
- command /d [<text>] [<player>]:
- trigger:
- if arg 1 is "zaloz":
- if {dzialki.spawn} is set:
- if distance between {dzialki.spawn} and location of player is greater than 200:
- if {dzialki.posiadacz.%name of player%} is not set:
- make console execute command "pex user %name of player% add worldedit.*"
- make console execute command "pex user %name of player% add worldguard.*"
- wait 0.5 seconds
- make player execute command "//pos1"
- make player execute command "//pos2"
- wait 0.5 seconds
- make player execute command "//expand 10 n"
- wait 0.5 seconds
- make player execute command "//expand 10 e"
- wait 0.5 seconds
- make player execute command "//expand 10 s"
- wait 0.5 seconds
- make player execute command "//expand 10 w"
- wait 0.5 seconds
- make player execute command "//expand vert"
- wait 1 tick
- make player execute command "rg define d%player%"
- set {dzialka.%player%} to "d%player%"
- wait 1 tick
- make console execute command "pex user %name of player% remove worldguard.*"
- wait 0.5 seconds
- make console execute command "pex user %name of player% remove worldedit.*"
- set {dzialki.home.%player%} to location of player
- set {dzialki.posiadacz.%name of player%} to true
- set {dzialki.home.gosc.%player%} to location of player
- wait 1 tick
- set {_zmienna.%player%} to 0
- loop 11 times:
- set block 10 meter north {_zmienna.%player%} meter east to {@ogrodzenie}
- add 1 to {_zmienna.%player%}
- set {_zmienna.%player%} to 0
- loop 11 times:
- set block 10 meter east {_zmienna.%player%} meter north to {@ogrodzenie}
- add 1 to {_zmienna.%player%}
- set {_zmienna.%player%} to 0
- loop 11 times:
- set block 10 meter south {_zmienna.%player%} meter east to {@ogrodzenie}
- add 1 to {_zmienna.%player%}
- set {_zmienna.%player%} to 0
- loop 11 times:
- set block 10 meter east {_zmienna.%player%} meter south to {@ogrodzenie}
- add 1 to {_zmienna.%player%}
- set {_zmienna.%player%} to 0
- loop 11 times:
- set block 10 meter south {_zmienna.%player%} meter west to {@ogrodzenie}
- add 1 to {_zmienna.%player%}
- set {_zmienna.%player%} to 0
- loop 11 times:
- set block 10 meter north {_zmienna.%player%} meter west to {@ogrodzenie}
- add 1 to {_zmienna.%player%}
- set {_zmienna.%player%} to 0
- loop 11 times:
- set block 10 meter west {_zmienna.%player%} meter south to {@ogrodzenie}
- add 1 to {_zmienna.%player%}
- set {_zmienna.%player%} to 0
- loop 11 times:
- set block 10 meter west {_zmienna.%player%} meter north to {@ogrodzenie}
- add 1 to {_zmienna.%player%}
- set {_zmienna.%player%} to 0
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send "{@logo}"
- send " "
- send "&eZalozyles Dzialke!"
- send " "
- send " "
- send " "
- send " "
- send " "
- else:
- send "&cMasz juz dzialke! Wpisz /d tp aby sie deleportowac na nia lub /d usun aby usunac!"
- else:
- send "&cMusisz byc w odleglosci 200kratek od spawnu!"
- if arg 1 is "usun":
- if {dzialki.posiadacz.%player%} is true:
- make console execute command "pex user %name of player% add worldedit.*"
- make console execute command "pex user %name of player% add worldguard.*"
- make player execute command "rg remove d%player%"
- make console execute command "pex user %name of player% remove worldguard.*"
- make console execute command "pex user %name of player% remove worldedit.*"
- clear {dzialki.posiadacz.%name of player%}
- set {_zmienna.%player%} to 0
- teleport player to {dzialki.home.%name of player%}
- loop 11 times:
- set block 10 meter north {_zmienna.%player%} meter east to air
- add 1 to {_zmienna.%player%}
- set {_zmienna.%player%} to 0
- loop 11 times:
- set block 10 meter east {_zmienna.%player%} meter north to air
- add 1 to {_zmienna.%player%}
- set {_zmienna.%player%} to 0
- loop 11 times:
- set block 10 meter south {_zmienna.%player%} meter east to air
- add 1 to {_zmienna.%player%}
- set {_zmienna.%player%} to 0
- loop 11 times:
- set block 10 meter east {_zmienna.%player%} meter south to air
- add 1 to {_zmienna.%player%}
- set {_zmienna.%player%} to 0
- loop 11 times:
- set block 10 meter south {_zmienna.%player%} meter west to air
- add 1 to {_zmienna.%player%}
- set {_zmienna.%player%} to 0
- loop 11 times:
- set block 10 meter north {_zmienna.%player%} meter west to air
- add 1 to {_zmienna.%player%}
- set {_zmienna.%player%} to 0
- loop 11 times:
- set block 10 meter west {_zmienna.%player%} meter south to air
- add 1 to {_zmienna.%player%}
- set {_zmienna.%player%} to 0
- loop 11 times:
- set block 10 meter west {_zmienna.%player%} meter north to air
- add 1 to {_zmienna.%player%}
- set {_zmienna.%player%} to 0
- send " "
- send " "
- send " "
- send " "
- send " "
- send "{@logo}"
- send " "
- send "&eUsunoles dzialke!!"
- send " "
- send " "
- send " "
- send " "
- send " "
- else:
- send "{@logo}"
- send " "
- send "&4Nie masz dzialki!"
- if arg 1 is "setspawn":
- if player have permissions "dzialki.admin":
- set {dzialki.spawn} to location of player
- send "{@logo}"
- send " "
- send "&4Ustawiles spawn dla swiata dzialek!"
- if arg 1 is "pomoc" or "help":
- send "{@logo}"
- send " "
- send "&eLista komend:"
- send "&e/d zaloz - w odleglosci 50 kratek od spawnu mozesz zalozyc dzialke o wymierach 10x10x10"
- send "&e/d usun - usuwasz dzialke"
- send "&e/d tp - po 5 sekundach teleportuje cie na dzialke"
- send "&ePlugin by MrPatryk07"
- if player have permissions "dzialki.admin":
- send "&c/d setspawn - aby ustawic spawn dla swiata dzialek. W odleglosci 50 kratek gracze beda mogli zakladac dzialki"
- if arg 1 is not set:
- send "{@logo}"
- send " "
- send "&eLista komend:"
- send "&e/d zaloz - w odleglosci 50 kratek od spawnu mozesz zalozyc dzialke o wymiarach 10x10"
- send "&e/d usun - usuwasz dzialke"
- send "&e/d tp - po 5 sekundach teleportuje cie na dzialke"
- send "&ePlugin by MrPatryk07"
- wait 1 tick
- if player have permissions "dzialki.admin":
- send "&c/d setspawn - aby ustawic spawn dla swiata dzialek. W odleglosci 50 kratek gracze beda mogli zakladac dzialki"
- if arg 1 is "dodaj":
- if player-arg is set:
- make console execute command "pex user %name of player% add worldedit.*"
- make console execute command "pex user %name of player% add worldguard.*"
- make player execute command "rg addmember {dzialka.%player%} %player-arg% "
- make console execute command "pex user %name of player% remove worldguard.*"
- make console execute command "pex user %name of player% remove worldedit.*"
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send "{@logo}"
- send ""
- send "Dodano player-arg do twojej dzialki"
- set {dzialki.home.gosc.%player-arg%} to true
- set {dzialki.home.%player-arg%} to {dzialki.home.%player%}
- else:
- send "{@logo}"
- send ""
- send "Poprawne uzycie: /d dodaj [nick gracza]"
- if arg 1 is "wyrzuc":
- if player-arg is set:
- make console execute command "pex user %name of player% add worldedit.*"
- make console execute command "pex user %name of player% add worldguard.*"
- make player execute command "rg removemember d%player% %player-arg%"
- make console execute command "pex user %name of player% remove worldguard.*"
- make console execute command "pex user %name of player% remove worldedit.*"
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send "{@logo}"
- send ""
- send "Usunięto player-arg z dzialki"
- clear {dzialki.home.gosc.%player-arg%}
- clear {dzialki.home.%player-arg%}
- else:
- send "{@logo}"
- send ""
- send "Poprawne uzycie: /d dodaj [nick gracza]"
- if arg 1 is "tp":
- if {dzialki.home.gosc.%player%} is true:
- if {dzialki.home.%player%} is set:
- send "{@logo}"
- send " "
- send "&eZostaniesz teleportowany za &c4s &ena swoja dzialke!"
- wait 4 seconds
- teleport player to {dzialki.home.%name of player%}
- else:
- send "&4Nie masz Dzialki!"
- else:
- send "&4Nie masz Dzialki!"
Advertisement
Add Comment
Please, Sign In to add comment