Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- zalozenie.itemy: 5 diamond and 5 gold ingot
- zalozenie.blok: bedrock
- powieksz.item.1: 5 diamond
- powieksz.item.2: 20 diamond
- powieksz.item.3: 45 diamond
- powieksz.item.4: 64 diamond
- powieksz.item.5: 128 diamond
- command /insp [<text>] [<text>] [<text>]:
- aliases: instantplot, instantp, insplot
- trigger:
- if player has permission "instantplot.admin":
- if arg 1 is "createwand":
- give 1 blaze rod of unbreaking 10 named "&6&l[INSP] Zaloz dzialke!" with lore "&7Kliknij prawym by zalozyc||&7dzialke &e15x15" to the player
- send "&6[INSP] &eOtrzymales rozdzke ''Create Plot Wand''!"
- stop
- if arg 1 is "largewand":
- give 1 blaze rod of unbreaking 9 named "&6&l[INSP] Powieksz dzialke!" with lore "&7Kliknij prawym by powiekszyc||&7twoja dzialke!" to the player
- send "&6[INSP] &eOtrzymales rozdzke ''Large Plot Wand''!"
- stop
- if arg 1 is "deletewand":
- give 1 blaze rod of unbreaking 8 named "&6&l[INSP] Usun dzialke!" with lore "&7Kliknij prawym by usunac dzialke!" to the player
- send "&6[INSP] &eOtrzymales rozdzke ''Delete Plot Wand''!"
- stop
- if arg 1 is "addplayerwand":
- give 1 blaze rod of unbreaking 7 named "&6&l[INSP] Dodaj gracza!" with lore "&7Kliknij prawym na gracza ktorego||&7chcesz dodac do dzialki!" to the player
- send "&6[INSP] &eOtrzymales rozdzke ''Add Player To Plot Wand''!"
- stop
- if arg 1 is "remplayerwand":
- give 1 blaze rod of unbreaking 6 named "&6&l[INSP] Usun gracza!" with lore "&7Kliknij prawym na gracza ktorego||&7chcesz wyrzucic z dzialki!" to the player
- send "&6[INSP] &eOtrzymales rozdzke ''Remove Player From Plot Wand''!"
- stop
- if arg 1 is "delete":
- if arg 2 is set:
- if region "%arg 2%" is exists:
- loop all players:
- loop {INSP::Czlonkowie::%arg 2%::*}:
- "%arg 2%".Region.delete{}
- set {INSP::inPlot::%arg 2%} to none
- delete {INSP::PVP::%arg 2%}
- delete {INSP::Lider::%arg 2%}
- delete {INSP::Czlonkowie::%arg 2%::*}
- delete {INSP::Powieksz::%arg 2%::1}
- delete {INSP::Powieksz::%arg 2%::2}
- delete {INSP::Powieksz::%arg 2%::3}
- delete {INSP::Powieksz::%arg 2%::4}
- delete {INSP::Powieksz::%arg 2%::5}
- set block at {INSP::Lokacja::%arg 2%} to air
- delete {INSP::Lokacja::%arg 2%}
- send "&6&l[INSP] Poprawnie usunales dzialke!"
- stop
- else:
- send "&c&l[INSP] Ten gracz nie posiada dzialki!"
- else:
- send "&c&l[INSP] Poprawne uzycie: /insp delete <nick>"
- if arg 1 is "adminhelp":
- send "&6&l====[ InstantPlot ]===="
- send "&6/insp createwand"
- send "&6/insp deletewand"
- send "&6/insp largewand"
- send "&6/insp addplayerwand"
- send "&6/insp remplayerwand"
- send "&6/insp delete"
- send "&6&l====[ InstantPlot ]===="
- else:
- send "&c&l[INSP] Nie masz do tego uprawnien! &7(instantplot.admin)"
- if player has permission "instantplot.player":
- if arg 1 is "pvp":
- if {INSP::inPlot::%player%} is set:
- if {INSP::Lider::%player%} is player:
- if {INSP::PVP::%player%} is true:
- set {INSP::PVP::%player%} to false
- send "&a&l[INSP] Wylaczyles PVP na dzialce!"
- stop
- if {INSP::PVP::%player%} is false:
- set {INSP::PVP::%player%} to true
- send "&a&l[INSP] Wlaczyles PVP na dzialce!"
- stop
- else:
- send "&c&l[INSP] Nie jestes liderem dzialki!"
- else:
- send "&c&l[INSP] Nie posiadasz dzialki!"
- if arg 1 is "wands":
- give 1 blaze rod of unbreaking 6 named "&6&l[INSP] Usun gracza!" with lore "&7Kliknij prawym na gracza ktorego||&7chcesz wyrzucic z dzialki!" to the player
- give 1 blaze rod of unbreaking 7 named "&6&l[INSP] Dodaj gracza!" with lore "&7Kliknij prawym na gracza ktorego||&7chcesz dodac do dzialki!" to the player
- give 1 blaze rod of unbreaking 8 named "&6&l[INSP] Usun dzialke!" with lore "&7Kliknij prawym by usunac dzialke!" to the player
- give 1 blaze rod of unbreaking 9 named "&6&l[INSP] Powieksz dzialke!" with lore "&7Kliknij prawym by powiekszyc||&7twoja dzialke" to the player
- give 1 blaze rod of unbreaking 10 named "&6&l[INSP] Zaloz dzialke!" with lore "&7Kliknij prawym by zalozyc||&7dzialke &e15x15" to the player
- send "&6[INSP] &eOtrzymales wszystkie rozdzki!"
- stop
- if arg 1 is "leave":
- if {INSP::inPlot::%player%} is set:
- if {INSP::Lider::%{INSP::inPlot::%player%}%} is not player:
- set {_plot} to {INSP::inPlot::%player%}
- remove player from {INSP::Czlonkowie::%{_plot}%::*}
- send "&9&l[INSP] Opusciles dzialke gracza %{_plot}%!" to player
- send "&9&l[INSP] Gracz %player% opuscil Twoja dzialke!" to {_plot} parsed as player
- delete {INSP::inPlot::%player%}
- stop
- else:
- send "&c&l[INSP] Jestes liderem, nie mozesz opusic wlasnej dzialki! Usun ja!"
- else:
- send "&c&l[INSP] Nie jestes w zadnej dzialce!"
- if arg 1 is "info":
- if arg 2 is set:
- set {_size} to size of {INSP::Czlonkowie::%arg 2%::*}
- send "&9&l[INSP] Lider: &9%{INSP::Lider::%arg 2%}%"
- send "&9&l[INSP] Czlonkowie [%{_size}%]: &9%{INSP::Czlonkowie::%arg 2%::*}%"
- loop {INSP::Czlonkowie::%arg 2%::*}:
- if loop-value is player:
- send "&9&l[INSP] Czy jestes dodany: &a&lTAK"
- stop
- else:
- send "&9&l[INSP] Czy jestes dodany: &c&lNIE"
- stop
- else:
- send "&c&l[INSP] Poprawne uzycie: /insp info <dzialka/gracz>"
- if arg 1 is "help":
- send "&6&l====[ InstantPlot ]===="
- send "&6/insp pvp"
- send "&6/insp wands"
- send "&6/insp leave"
- send "&6/insp info"
- send "&6&l====[ InstantPlot ]===="
- else:
- send "&c&l[INSP] Nie masz do tego uprawnien! &7(instantplot.player)"
- on rightclick:
- if player's tool is blaze rod of unbreaking 10:
- loop blocks around player in radius 45:
- set {_region} to Region.getAt{location of loop-block};
- if distance between {_region} and location of player is less than 10:
- send "&c&l[INSP] W poblizu jest juz dzialka!"
- stop
- if region "%player%" is exists:
- send "&c&l[INSP] Posiadasz juz dzialke!"
- stop
- if player has {@zalozenie.itemy}:
- loop all players:
- remove {@zalozenie.itemy} from the player
- set {INSP::Wielkosc::%player%} to 15
- "%player%".Region.selectLS{location of player, {INSP::Wielkosc::%player%}};
- set {INSP::inPlot::%player%} to player
- set {INSP::Lider::%player%} to player
- set {INSP::PVP::%player%} to false
- add player to {INSP::Czlonkowie::%player%::*}
- set {INSP::Powieksz::%player%::1} to false
- set {INSP::Powieksz::%player%::2} to false
- set {INSP::Powieksz::%player%::3} to false
- set {INSP::Powieksz::%player%::4} to false
- set {INSP::Powieksz::%player%::5} to false
- set {INSP::Lokacja::%player%} to location of player
- set block at location of player to {@zalozenie.blok}
- send "&6&l[INSP] Poprawnie zalozyles wlasna dzialke!"
- stop
- else:
- send "&c&l[INSP] Nie posiadasz wymaganych przedmiotow na zalozenie dzialki!"
- send "&c&l[INSP] Potrzebujesz: &7&l{@zalozenie.itemy}"
- stop
- if player's tool is blaze rod of unbreaking 9:
- if {INSP::inPlot::%player%} is set:
- if {INSP::Lider::%player%} is player:
- if {INSP::Powieksz::%player%::1} is false:
- if player has {@powieksz.item.1}:
- remove {@powieksz.item.1} from the player
- set {INSP::Powieksz::%player%::1} to true
- set {INSP::Wielkosc::%player%} to 20
- "%player%".Region.selectLS{{INSP::Lokacja::%player%} , {INSP::Wielkosc::%player%} };
- send "&a&l[INSP] Powiekszyles dzialke!"
- send "&a&l[INSP] Aktualnie: %{INSP::Wielkosc::%player%}%x%{INSP::Wielkosc::%player%}%"
- stop
- else:
- send "&c&l[INSP] Nie posiadasz wymaganych przedmiotow na powiekszenie dzialki!"
- send "&c&l[INSP] Potrzebujesz: &7&l{@powieksz.item.1}"
- stop
- if {INSP::Powieksz::%player%::2} is false:
- if player has {@powieksz.item.2}:
- remove {@powieksz.item.2} from the player
- set {INSP::Powieksz::%player%::2} to true
- set {INSP::Wielkosc::%player%} to 25
- "%player%".Region.selectLS{{INSP::Lokacja::%player%} , {INSP::Wielkosc::%player%} };
- send "&a&l[INSP] Powiekszyles dzialke!"
- send "&a&l[INSP] Aktualnie: %{INSP::Wielkosc::%player%}%x%{INSP::Wielkosc::%player%}%"
- stop
- else:
- send "&c&l[INSP] Nie posiadasz wymaganych przedmiotow na powiekszenie dzialki!"
- send "&c&l[INSP] Potrzebujesz: &7&l{@powieksz.item.2}"
- stop
- if {INSP::Powieksz::%player%::3} is false:
- if player has {@powieksz.item.3}:
- remove {@powieksz.item.3} from the player
- set {INSP::Powieksz::%player%::3} to true
- set {INSP::Wielkosc::%player%} to 30
- "%player%".Region.selectLS{{INSP::Lokacja::%player%} , {INSP::Wielkosc::%player%} };
- send "&a&l[INSP] Powiekszyles dzialke!"
- send "&a&l[INSP] Aktualnie: %{INSP::Wielkosc::%player%}%x%{INSP::Wielkosc::%player%}%"
- stop
- else:
- send "&c&l[INSP] Nie posiadasz wymaganych przedmiotow na powiekszenie dzialki!"
- send "&c&l[INSP] Potrzebujesz: &7&l{@powieksz.item.3}"
- stop
- if {INSP::Powieksz::%player%::4} is false:
- if player has {@powieksz.item.4}:
- remove {@powieksz.item.4} from the player
- set {INSP::Powieksz::%player%::4} to true
- set {INSP::Wielkosc::%player%} to 35
- "%player%".Region.selectLS{{INSP::Lokacja::%player%} , {INSP::Wielkosc::%player%} };
- send "&a&l[INSP] Powiekszyles dzialke!"
- send "&a&l[INSP] Aktualnie: %{INSP::Wielkosc::%player%}%x%{INSP::Wielkosc::%player%}%"
- stop
- else:
- send "&c&l[INSP] Nie posiadasz wymaganych przedmiotow na powiekszenie dzialki!"
- send "&c&l[INSP] Potrzebujesz: &7&l{@powieksz.item.4}"
- stop
- if {INSP::Powieksz::%player%::5} is false:
- if player has {@powieksz.item.5}:
- remove {@powieksz.item.5} from the player
- set {INSP::Powieksz::%player%::5} to true
- set {INSP::Wielkosc::%player%} to 40
- "%player%".Region.selectLS{{INSP::Lokacja::%player%} , {INSP::Wielkosc::%player%} };
- send "&a&l[INSP] Powiekszyles dzialke!"
- send "&a&l[INSP] Aktualnie: %{INSP::Wielkosc::%player%}%x%{INSP::Wielkosc::%player%}%"
- stop
- else:
- send "&c&l[INSP] Nie posiadasz wymaganych przedmiotow na powiekszenie dzialki!"
- send "&c&l[INSP] Potrzebujesz: &7&l{@powieksz.item.5}"
- stop
- else:
- send "&c&l[INSP] Osiagnales maksymalny rozmiar terenu!"
- else:
- send "&c&l[INSP] Nie jestes liderem tej dzialki!"
- else:
- send "&c&l[INSP] Nie masz zadnej dzialki!"
- stop
- if player's tool is blaze rod of unbreaking 8:
- if region "%player%" is not exists:
- send "&c&l[INSP] Nie posiadasz dzialki!"
- stop
- loop all players:
- loop {INSP::Czlonkowie::%player%::*}:
- "%player%".Region.delete{}
- set {INSP::inPlot::%player%} to none
- delete {INSP::PVP::%player%}
- delete {INSP::Lider::%player%}
- delete {INSP::Czlonkowie::%player%::*}
- delete {INSP::Powieksz::%player%::1}
- delete {INSP::Powieksz::%player%::2}
- delete {INSP::Powieksz::%player%::3}
- delete {INSP::Powieksz::%player%::4}
- delete {INSP::Powieksz::%player%::5}
- set block at {INSP::Lokacja::%player%} to air
- delete {INSP::Lokacja::%player%}
- send "&6&l[INSP] Poprawnie usunales dzialke!"
- stop
- on rightclick on player:
- if player's tool is blaze rod of unbreaking 7:
- if region "%player%" is exists:
- if region "%clicked player%" is not exists:
- set {INSP::Zaproszenie::%player%} to clicked player
- set {INSP::OtrzymanoZaproszenie::%clicked player%} to player
- send "&9&l[INSP] Zostales zaproszony do dzialki gracza %player%!" to clicked player
- send "&9&l[INSP] Wpisz /paccept %player% lub /pdeny %player%!" to clicked player
- send "&9&l[INSP] Zaprosiles gracza %clicked player% do dzialki!" to player
- else:
- send "&c&l[INSP] Ten gracz posiada juz dzialke!"
- else:
- send "&c&l[INSP] Nie posiadasz dzialki!"
- if player's tool is blaze rod of unbreaking 6:
- if region "%player%" is exists:
- loop {INSP::Czlonkowie::%player%::*}:
- if loop-value is player:
- remove clicked player from {INSP::Czlonkowie::%player%::*}
- send "&9&l[INSP] Zostales wyrzucony z dzialki gracza %player%!" to clicked player
- send "&9&l[INSP] Wyrzuciles gracza %clicked player% z dzialki!" to player
- else:
- send "&c&l[INSP] Ten gracz nie jest w twojej dzialce!"
- else:
- send "&c&l[INSP] Nie posiadasz dzialki!"
- command /paccept [<text>]:
- trigger:
- if arg 1 is set:
- if {INSP::OtrzymanoZaproszenie::%player%} is arg 1:
- loop {INSP::Czlonkowie::%arg 1%::*}:
- add player to {INSP::Czlonkowie::%arg 1%::*}
- set {INSP::inPlot::%player%} to arg 1
- send "&9&l[INSP] Dolaczyles do dzialki gracza %arg 1%!"
- send "&9&l[INSP] Gracz %player% dolaczyl do Twojej dzialki!" to arg 1 parsed as player
- delete {INSP::OtrzymanoZaproszenie::%player%}
- stop
- else:
- send "&c&l[INSP] Nie otrzymales zaproszenia od tej osoby!"
- else:
- send "&c&l[INSP] Poprawne uzycie: /paccept <nick>"
- command /pdeny [<text>]:
- trigger:
- if arg 1 is set:
- if {INSP::OtrzymanoZaproszenie::%player%} is arg 1:
- send "&9&l[INSP] Odrzuciles zaproszenie do dzialki od gracza %arg 1%!"
- send "&9&l[INSP] Gracz %player% odrzucil Twoje zaproszenie!" to arg 1 parsed as player
- delete {INSP::OtrzymanoZaproszenie::%player%}
- stop
- else:
- send "&c&l[INSP] Nie otrzymales zaproszenia od tej osoby!"
- else:
- send "&c&l[INSP] Poprawne uzycie: /pdeny <nick>"
- # ============================ NISZCZENIE/BUDOWANIE NA DZIALCE ==============================
- on break:
- if player doesn't have permission "instantplot.admin":
- if location of event-block is in any region:
- set {_region} to Region.getAt{location of player};
- loop {INSP::Czlonkowie::%{_region}%::*}:
- if loop-value is player:
- send "%{INSP::Czlonkowie::%{_region}%::*}%" to player
- stop
- else:
- cancel event
- send "&c&l[INSP] Nie mozesz niszczyc na cudzej dzialce!"
- stop
- on place:
- if player doesn't have permission "instantplot.admin":
- if location of event-block is in any region:
- set {_region} to Region.getAt{location of player};
- loop {INSP::Czlonkowie::%{_region}%::*}:
- if loop-value is player:
- stop
- else:
- cancel event
- send "&c&l[INSP] Nie mozesz stawiac blokow na cudzej dzialce!"
- stop
- # ============================ PVP NA DZIALCE ==============================
- on damage of player:
- if {INSP::inPlot::%attacker%} is set:
- if {INSP::inPlot::%victim%} is set:
- loop {INSP::Czlonkowie::%{INSP::inPlot::%attacker%}%::*}:
- if loop-value is attacker:
- if {INSP::PVP::%{INSP::inPlot::%attacker%}%} is false:
- cancel event
- send "&c&l[INSP] PVP na dzialce jest wylaczone!" to attacker
- stop
- loop {INSP::Czlonkowie::%{INSP::inPlot::%victim%}%::*}:
- if loop-value is attacker:
- if {INSP::PVP::%{INSP::inPlot::%victim%}%} is false:
- cancel event
- stop
- # ============================ WIADOMOSC O TERENIE DZIALKI ==============================
- on anymove:
- if {INST::%player%::PLOT} is not set:
- set {INST::%player%::PLOT} to "&cBRAK DANYCH :("
- if Region.getAt{location of player} is not set:
- set {_plot} to "&cBRAK DANYCH :("
- else:
- set {_plot} to Region.getAt{location of player}
- if {_plot} is not {INST::%player%::PLOT}:
- if {_plot} is "None" or "<none>" or "&cBRAK DANYCH :(":
- display "&6&l[INSP] Teren dzialki: %{INST::%player%::PLOT}%" on bossbar with 100 percent by 3 seconds for player
- stop
- else:
- display "&6&l[INSP] Teren dzialki: %{_plot}%" on bossbar with 100 percent by 3 seconds for player
- stop
- set {INST::%player%::PLOT} to {_plot}
Advertisement
Add Comment
Please, Sign In to add comment