Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {kordy::cuboid::%player%} = 0
- on region enter:
- send player title "" with subtitle "&8» &cWkraczasz na cuboid &4%owners of event-region%" for 1.6 seconds
- on region exit:
- send player title "" with subtitle "&8» &cOpuszczasz cuboid &4%owners of event-region%" for 1.6 seconds
- options:
- world: world
- dzialka.size: 30
- spawn.distance: 100
- command /cub [<text>] [<offlineplayer>]:
- aliases: cuboid
- trigger:
- if arg 1 is not set:
- send "&8&m------------&8(&cHaczykWorld&8)&m------------"
- send "&8 » &c/cub stworz &7- tworzy cuboid 30x30."
- send "&8 » &c/cub usun &7- usuwa cuboid."
- send "&8 » &c/cub dodaj <gracz> &7- dodaje gracza do cuboida."
- send "&8 » &c/cub wyrzuc <gracz> &7- usuwa gracza z cuboida."
- send "&8 » &c/cub info <gracz> &7- pokazuje inforacje o cuboidzie."
- send "&8&m------------&8(&cHaczykWorld&8)&m------------"
- if arg 1 is "setspawn":
- if player has permissions "cuboid.admin" or "cuboid.*":
- if player's world is "{@world}":
- set {cuboid::spawn::%world%} to location of player
- send "&8 » &7Ustawiono spawn dla skryptu na cuboidy."
- stop
- else:
- send "&8 » &7Spawn moze byc tylko w swiecie &cworld!"
- stop
- else:
- send "&8 » &7Brak uprawnien do tej komendy."
- stop
- if arg 1 is "stworz":
- set {_at} to {kordy::cuboid::%player%}
- if "%owners of region at {_at}%" contains "%player%":
- send "&8 » &7Posiadasz juz cuboid. Sprawdz &c/cub info!"
- stop
- else:
- if player's world is "{@world}":
- if {cuboid::spawn::%world%} is set:
- if distance between {cuboid::spawn::%world%} and location of player is greater than {@spawn.distance}+{claim.size}/2:
- player cannot build at block under player:
- send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
- stop
- player cannot build at block {@dzialka.size} meters northwest:
- send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
- stop
- player cannot build at block {@dzialka.size} meters north:
- send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
- stop
- player cannot build at block {@dzialka.size} meters northeast:
- send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
- stop
- player cannot build at block {@dzialka.size} meters west:
- send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
- stop
- player cannot build at block {@dzialka.size} meters east:
- send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
- stop
- player cannot build at block {@dzialka.size} meters southwest:
- send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
- stop
- player cannot build at block {@dzialka.size} meters south:
- send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
- stop
- player cannot build at block {@dzialka.size} meters southeast:
- send "&8 » &7Nie mozesz w tym miejscu stworzyc cuboida."
- stop
- make console execute command "pex user %player% add worldguard.*"
- make console execute command "pex user %player% add worldedit.*"
- execute player command "//pos1"
- execute player command "//pos2"
- execute player command "//expand {@dzialka.size} n"
- execute player command "//expand {@dzialka.size} e"
- execute player command "//expand {@dzialka.size} s"
- execute player command "//expand {@dzialka.size} w"
- execute player command "//expand vert"
- execute player command "rg define %player%"
- execute player command "rg flag %player% other-explosion deny"
- execute player command "rg flag %player% creeper-explosion deny"
- execute player command "rg flag %player% mob-damage deny"
- execute player command "rg flag %player% mob-spawning deny"
- execute player command "rg flag %player% pvp deny"
- execute player command "rg flag %player% tnt deny"
- execute player command "rg addmember %player% %player%"
- execute player command "rg addowner %player% %player%"
- execute player command "//pos1"
- execute player command "//pos2"
- loop 20 times:
- send " "
- set {kordy::cuboid::%player%} to location of player
- make console execute command "pex user %player% remove worldguard.*"
- make console execute command "pex user %player% remove worldedit.*"
- loop 20 times:
- send " "
- wait 2 tick
- loop 20 times:
- send " "
- set {_members} to "%members of region at player%"
- replace " and " in {_members} with ", "
- send "&8&m------------&8(&cHaczykWorld&8)&m------------"
- send " &8 » &7Cuboid zostal stworzony."
- send " &8 » &cJesli cos ponizej sie nie zgadza zglos to!"
- send " &8 » &7Wlasciciel cuboida to &c%owner of region at player%."
- send " &8 » &7Osoby dodane do cuboida to &c%{_members}%"
- send " &8 » &aJesli wszystko sie zgadza milej gry!"
- send "&8&m------------&8(&cHaczykWorld&8)&m------------"
- make console execute command "pex user %player% add wlasciciel.cuboid.*"
- stop
- else:
- send "&8 » &7Musisz byc 100 kratek od spawnu aby zalozyc cuboid!"
- stop
- if arg 1 is "usun":
- set {_at} to {kordy::cuboid::%player%}
- if "%owners of region at {_at}%" contains "%player%":
- make console execute command "rg remove -w %world of player% %player%"
- send "&8 » &7Cuboid zostal usuniety!"
- clear {kordy::cuboid::%player%}
- make console execute command "pex user %player% remove wlasciciel.cuboid.*"
- stop
- else:
- send "&8 » &7Nie posiadasz cuboida."
- if arg 1 is "dodaj":
- set {_at} to {kordy::cuboid::%player%}
- if "%owners of region at {_at}%" contains "%player%":
- if arg 2 is set:
- set {_at} to {kordy::cuboid::%player%}
- if "%members of region at {_at}%" contains "%argument-offlineplayer%":
- send "&8 » &7Wpisany gracz jest juz dodany do cuboida."
- else:
- if argument-offlineplayer is online:
- make console execute command "rg addmember -w %world of player% %name of player% %arg 2%"
- send "&8 » &7Gracz &c%arg 2% &7zostal dodany do Twojego cuboida!"
- stop
- else:
- send "&8 » &7Wpisany gracz jest offline lub nie istnieje!"
- else:
- send "&8 » &7Nie podales gracza, ktory ma zostac dodany do cuboida."
- stop
- else:
- send "&8 » &7Nie posiadasz cuboida."
- if arg 1 is "wyrzuc":
- set {_at} to {kordy::cuboid::%player%}
- if "%owners of region at {_at}%" contains "%player%":
- if arg 2 is set:
- set {_at} to {kordy::cuboid::%player%}
- if "%members of region at {_at}%" contains "%argument-offlineplayer%":
- if "%arg 2%" is "%player%":
- send "&8 » &7Nie mozesz wyrzucic sam siebie!"
- stop
- else:
- make console execute command "rg removemember -w %world of player% %player% %arg 2%"
- send "&8 » &7Gracz &c%arg 2% &7zostal wyrzucony z Twojego cuboida!"
- stop
- else:
- send "&8 » &7Wpisany gracz nie jest dodany do Twojego cuboida!"
- stop
- else:
- send "&8 » &7Nie podales gracza, ktory ma zostac wyrzucony z cuboida."
- stop
- else:
- send "&8 » &7Nie posiadasz cuboida."
- if arg 1 is "info":
- if arg 2 is not set:
- set {_at} to {kordy::cuboid::%player%}
- if "%members of region at {_at}%" contains "%player%":
- set {_at} to {kordy::cuboid::%player%}
- set {_members} to "%members of region at {_at}%"
- replace " and " in {_members} with ", "
- send "&8&m------------&8(&cHaczykWorld&8)&m------------"
- send " &8 » &7Wlasciciel cuboida: &c%owner of region at {_at}%"
- send " &8 » &7Gracze dodani do cuboida:"
- send " &8 » &c%{_members}%"
- send " &8 » &aKordy (widoczne tylko dla Ciebie!)"
- send " &8 » &7%{_at}%"
- send "&8&m------------&8(&cHaczykWorld&8)&m------------"
- stop
- else:
- send "&8 » &7Nie posiadasz cuboida."
- else:
- set {_at} to {kordy::cuboid::%arg 2%}
- set {_members} to "%members of region at {_at}%"
- replace " and " in {_members} with ", "
- if "%{_members}%" is "<none>":
- send "&8 » &7Taki cuboid nie istnieje."
- stop
- send "&8&m------------&8(&cHaczykWorld&8)&m------------"
- send " &8 » &7Wlasciciel cuboida: &c%owner of region at {_at}%"
- send " &8 » &7Gracze dodani do cuboida:"
- send " &8 » &c%{_members}%"
- if "%owner of region at {_at}%" is "%player%":
- send " &8 » &aKordy (widoczne tylko dla Ciebie!)"
- send " &8 » &7%{_at}%"
- send "&8&m------------&8(&cHaczykWorld&8)&m------------"
- stop
- if player has permissions "cuboid.admin" or "cuboid.*":
- send " &8 » &aKordy (widoczne dzieki uprawnien!)"
- send " &8 » &7%{_at}%"
- send "&8&m------------&8(&cHaczykWorld&8)&m------------"
- stop
- send "&8&m------------&8(&cHaczykWorld&8)&m------------"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement