Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- # Konfiguracja:
- tag: &2CUBOIDY
- # Wiadomosci:
- notpermiss: &cNie masz do tego uprawnien!
- error: &cNie mozesz tego zrobic!
- cuboidplaced: &aCuboid pomyslnie ustawiony!
- cuboidhelp: &aKomendy dotyczace skryptu na cuboidy: &c/cuboid help&a!
- succesadd: &aPomyslnie dodano gracza do cuboidu!
- addtocuboid: &aZostales dodany do cuboida gracza &c%player%&a!
- alreadyadded: &cTen gracz jest juz dodany do twojego cuboidu!
- notowner: &cNie jestes wlascicielem tego cuboidu!
- notregion: &cAby to zrobic musisz byc na swojej dzialce!
- notplayer: &cPodaj nick gracza!
- succesremov: &cUsunoles gracza z cuboidu!
- removfromcub: &cZostales usuniety z cuboidu &4%player%&c!
- notadded: &cTen gracz nie jest dodany do twojego cuboidu!
- # ::--------------------------------------------------------------::
- # :: - :: KOD ::-::
- # ::--------------------------------------------------------------::
- command /daj-cuboid:
- permission: cuboid.admin
- permission message: {@tag} {@notpermiss}
- trigger:
- add 1 of bedrock named "&c&lCUBOID" to player's inventory
- send "&aOtrzymales Cuboid!" to player
- on place:
- if player's tool is bedrock named "&c&lCUBOID":
- if {cuboid.%player%::*} is not set:
- execute console command "pex user %name of player% add worldedit.*"
- execute console command "pex user %name of player% add worldguard.*"
- execute player command "//pos1"
- execute player command "//pos2"
- execute player command "//expand 50 n"
- execute player command "//expand 50 s"
- execute player command "//expand 50 w"
- execute player command "//expand 50 e"
- execute player command "//expand vert"
- execute player command "rg define %name of player%"
- execute console command "pex user %name of player% remove worldedit.*"
- execute console command "pex user %name of player% remove worldguard.*"
- loop 99 times:
- send " " to player
- send "{@tag} {@cuboidplaced}" to player
- set {cuboid.%player%::%region at player%} to now
- send "{@tag} {@cuboidhelp}" to player
- else:
- send "Zmien to (linijka 48)"
- on break:
- if region at player is set:
- if {cuboid.%player%::%region at player%} is not set:
- if {cuboid.dodany.%player%::%region at player%} is not set:
- if player has permissions "cuboidy.admin":
- stop
- else:
- cancel event
- send "{@tag} {@error}" to player
- on place:
- if region at player is set:
- if {cuboid.%player%::%region at player%} is not set:
- if {cuboid.dodany.%player%::%region at player%} is not set:
- if player has permissions "cuboidy.admin":
- stop
- else:
- cancel event
- send "{@tag} {@error}" to player
- on right click:
- if event-block is chest or furnace or anvil or ender chest or door:
- if region at player is set:
- if {cuboid.%player%::%region at player%} is not set:
- if {cuboid.dodany.%player%::%region at player%} is not set:
- if player has permissions "cuboid.admin":
- stop
- else:
- cancel event
- send "{@tag} {@error}"
- command /cuboid <text> [<player>]:
- usage: /cuboid help
- trigger:
- if text-arg is "help":
- send "{@tag} &7-> &c/cuboid dodaj NICK &7- Dodajesz gracza do cuboida!" to player
- send "{@tag} &7-> &c/cuboid usun NICK &7- Usuwasz gracza z cuboida!" to player
- send "{@tag} &7-> &c/cuboid autor &7- Wyswietla autora skryptu." to player
- else if text-arg is "dodaj":
- if player-arg is set:
- if region at player is set:
- if {cuboid.%player%::%region at player%} is set:
- if {cuboid.dodany.%player-arg%::%region at player%} is not set:
- set {cuboid.dodany.%player-arg%::%region at player%} to now
- send "{@tag} {@succesadd}" to player
- send "{@tag} {@addtocuboid}" to player-arg
- else:
- send "{@tag} {@alreadyadded}" to player
- else:
- send "{@tag} {@notowner}" to player
- else:
- send "{@tag} {@notregion}" to player
- else:
- send "{@tag} {@notplayer}" to player
- else if text-arg is "usun":
- if player-arg is set:
- if region at player is set:
- if {cuboid.%player%::%region at player%} is set:
- if {cuboid.dodany.%player-arg%::%region at player%} is set:
- clear {cuboid.dodany.%player-arg%::%region at player%}
- send "{@tag} {@succesremov}" to player
- send "{@tag} {@removfromcub}" to player-arg
- else:
- send "{@tag} {@notadded}" to player
- else:
- send "{@tag} {@notowner}" to player
- else:
- send "{@tag} {@notregion}" to player
- else:
- send "{@tag} {@notplayer}" to player
- else if text-arg is "autor":
- send "{@tag} &8| &7Autor skryptu na cuboidy: &cdamixedixed&7!"
- else:
- execute player command "cuboid help"
Advertisement
Add Comment
Please, Sign In to add comment