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" |
- #*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*
- command /d [<text>]:
- trigger:
- if arg 1 is "zaloz":
- if {dzialki.spawn} is set:
- if distance between {dzialki.spawn} and location of player is greater than 50:
- 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.*"
- make player execute command "//pos1"
- make player execute command "//pos2"
- make player execute command "//expand 10 n"
- make player execute command "//expand 10 e"
- make player execute command "//expand 10 s"
- make player execute command "//expand 10 w"
- make player execute command "//expand vert"
- wait 1 tick
- make player execute command "rg define d%player%"
- wait 1 tick
- make console execute command "pex user %name of player% remove worldguard.*"
- 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
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- send " "
- 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 50kratek 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.*"
- send "&4Nie masz juz dzialki!"
- clear {dzialki.posiadacz.%name of player%}
- send " "
- send " "
- send " "
- send " "
- send " "
- send "&eUsunoles dzialke!!"
- send " "
- send " "
- send " "
- send " "
- send " "
- else:
- send "&4Nie masz dzialki!"
- if arg 1 is "setspawn":
- set {dzialki.spawn} to location of player
- send "&4Ustawiles spawn dla swiata dzialek!"
- if arg 1 is "tp":
- if {dzialki.home.%player%} is set:
- send "&eZostaniesz teleportowany za &c4s &ena swoja dzialke!"
- wait 4 seconds
- teleport player to {dzialki.home.%name of player%}
- else:
- send "&4Nie masz Dzialki!"
- if arg 1 is "pomoc" or "help":
- 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 is op:
- 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 "&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"
- wait 1 tick
- if player is op:
- send "&c/d setspawn - aby ustawic spawn dla swiata dzialek. W odleglosci 50 kratek gracze beda mogli zakladac dzialki"
Advertisement
Add Comment
Please, Sign In to add comment