Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {event.wlaczony} = false
- {event.dolaczyl.%player%} = false
- {klasa.rycerz.%player%} = false
- {klasa.lucznik.%player%} = false
- {druzyna.red.%player%} = false
- {druzyna.blue.%player%} = false
- options:
- tag: &f&l[&cMC&f-PL&7.net&f&l] &a
- line: &b&l:: &a
- command /event [<text>] [<text>]:
- trigger:
- if argument 1 is not set:
- send "{@tag}Komendy eventu:"
- send "{@line}Dolaczanie do eventu - &b/event dolacz"
- send "{@line}Wyjscie z eventu - &b/event wyjdz"
- send ""
- if argument 1 is "dolacz":
- if {event.wlaczony} is true:
- if {event.dolaczyl.%player%} is false:
- add 1 to {event::ilosc}
- teleport the player to {event.lobby}
- send "{@tag}Dolaczyles do eventu! (&b%{event::ilosc}%&a)"
- send "{@tag}Wybierz klase i druzyne."
- else:
- send "{@tag}Juz jestes w evencie!"
- else:
- send "{@tag}Aktualnie nie trwa zaden event!"
- if argument 1 is "wyjdz":
- if {event.wlaczony} is true:
- if {event.dolaczyl.%player%} is true:
- remove player from {event.red::*}
- remove player from {event.blue::*}
- set {event.dolaczyl.%player%} to false
- teleport the player to {event.spawn}
- remove 1 from {event::ilosc}
- send "{@tag}Wyszedles z eventu!"
- else:
- send "{@tag}Nie jestes w evencie!"
- else:
- send "{@tag}Aktualnie nie trwa zaden event!"
- command /aevent [<text>] [<text>]:
- trigger:
- if player has permission "event.admin":
- if argument 1 is not set:
- send "{@tag}Komendy eventu dla administratora:"
- send "{@line}Wlaczenie eventu - &b/aevent wlacz"
- send "{@line}Wylacznie eventu - &b/aevent wylacz"
- send "{@line}Ogloszenie o evencie - &b/aevent ogloszenie"
- send "{@line}Start eventu - &b/aevent start"
- send "{@line}Stop eventu - &b/aevent stop"
- send "{@line}Ustawianie lokalizacji - &b/aevent ustaw <spawn/lobby/start>"
- send ""
- if argument 1 is "wlacz":
- if {event.wlaczony} is false:
- set {event.wlaczony} to true
- send "{@tag}Wlaczyles event!"
- send "{@tag}Teraz wpisz &b/event ogloszenie &aaby wyslac ogloszenie o evencie."
- else:
- send "{@tag}Event juz jest wlaczony!"
- if argument 1 is "wylacz":
- if {event.wlaczony} is true:
- set {event.wlaczony} to false
- loop {event.red::*}:
- teleport the loop-value to {event.spawn}
- set {event.dolaczyl.%loop-value%} to false
- set {druzyna.red.%loop-value%} to false
- loop {event.blue::*}:
- teleport the loop-value to {event.spawn}
- set {event.dolaczyl.%loop-value%} to false
- set {druzyna.red.%loop-value%} to false
- send "{@tag}Wylaczyles event!"
- broadcast ""
- broadcast "{@tag}Event zostal wylaczony!"
- broadcast ""
- if argument 1 is "ogloszenie":
- if {event.wlaczony} is true:
- broadcast ""
- broadcast "{@tag}Zapraszamy na event!"
- broadcast "{@tag}Komenda dolaczenia - &b/event dolacz"
- broadcast ""
- else:
- send "{@tag}Najpierw musisz wlaczyc event!"
- if argument 1 is "start":
- if {event.wlaczony} is true:
- loop {event.red::*}:
- teleport the loop-value to {event.red}
- loop {event.blue::*}:
- teleport the loop-value to {event.blue}
- broadcast ""
- broadcast "{@tag}Event sie rozpoczal!"
- broadcast "{@tag}Szukajcie skrzynek i uzbrojenia!"
- broadcast ""
- else:
- send "{@tag}Najpierw musisz wlaczyc event!"
- if argument 1 is "stop":
- if {event.wlaczony} is true:
- loop {event.red::*}:
- teleport the loop-value to {event.lobby}
- loop {event.blue::*}:
- teleport the loop-value to {event.lobby}
- broadcast ""
- broadcast "{@tag}Event zostal wylaczony!"
- broadcast ""
- else:
- send "{@tag}Najpierw musisz wlaczyc event!"
- if argument 1 is "ustaw":
- if argument 2 is "spawn":
- if {event.spawn} is not set:
- set {event.spawn} to location of the player
- send "{@tag}Ustawiles lokalizacje spawnu!"
- else:
- set {event.spawn} to location of the player
- send "{@tag}Zmieniles lokalizacje spawnu!"
- if argument 2 is "lobby":
- if {event.lobby} is not set:
- set {event.lobby} to location of the player
- send "{@tag}Ustawiles lokalizacje lobby!"
- else:
- set {event.lobby} to location of the player
- send "{@tag}Zmieniles lokalizacje lobby!"
- if argument 2 is "red":
- if {event.red} is not set:
- set {event.red} to location of the player
- send "{@tag}Ustawiles lokalizacje druzyny czerwonej!"
- else:
- set {event.red} to location of the player
- send "{@tag}Zmieniles lokalizacje druzyny czerwonej!"
- if argument 2 is "blue":
- if {event.blue} is not set:
- set {event.blue} to location of the player
- send "{@tag}Ustawiles lokalizacje druzyny niebieskiej!"
- else:
- set {event.blue} to location of the player
- send "{@tag}Zmieniles lokalizacje druzyny niebieskiej!"
- else:
- send "{@tag}Nie masz do tego uprawnien!"
- on sign change:
- if line 1 is "[event]":
- if player has permission "event.admin":
- if line 2 is "druzyna":
- if line 3 is "red":
- set line 1 to "&a&lEvent"
- set line 2 to "&b&lDruzyna"
- set line 3 to ""
- set line 4 to "&c&lRED"
- if line 3 is "blue":
- set line 1 to "&a&lEvent"
- set line 2 to "&b&lDruzyna"
- set line 3 to ""
- set line 4 to "&3&lBLUE"
- if line 2 is "klasa":
- if line 3 is "lucznik":
- set line 1 to "&a&lEvent"
- set line 2 to "&b&lKlasa"
- set line 3 to ""
- set line 4 to "&f&lLUCZNIK"
- if line 3 is "rycerz":
- set line 1 to "&a&lEvent"
- set line 2 to "&b&lKlasa"
- set line 3 to ""
- set line 4 to "&f&lRYCERZ"
- if line 2 is "wyjdz":
- set line 1 to "&a&lEvent"
- set line 2 to "&b&lWyjdz"
- set line 4 to "&lKliknij PPM"
- on rightclick on sign:
- if line 1 is "&a&lEvent":
- if line 2 is "&b&lDruzyna":
- if line 4 is "&c&lRED":
- set {druzyna.red.%player%} to true
- add player to {event.red::*}
- equip player with leather helmet
- equip player with leather chestplate
- equip player with leather leggings
- equip player with leather boots
- dye player's helmet red
- dye player's chestplate red
- dye player's leggings red
- dye player's boots red
- send "{@tag}Dolaczyles do druzyny &cczerwonej&a!"
- if line 4 is "&3&lBLUE":
- set {druzyna.blue.%player%} to true
- add player to {event.blue::*}
- equip player with leather helmet
- equip player with leather chestplate
- equip player with leather leggings
- equip player with leather boots
- dye player's helmet blue
- dye player's chestplate blue
- dye player's leggings blue
- dye player's boots blue
- send "{@tag}Dolaczyles do druzyny &3niebieskiej&a!"
- if line 2 is "&b&lKlasa":
- if line 4 is "&f&lRYCERZ":
- if {klasa.rycerz.%player%} is false:
- set {klasa.lucznik.%player%} to false
- remove bow from player's inventory
- remove stone sword from player's inventory
- remove arrow from player's inventory
- give 1 diamond sword of sharpness 3 and fire aspect 1 named "&e&lMiecz" to player
- give 2 enchanted golden apple named "&e&lZlote jablko" to player
- send "{@tag}Wybrales klase &brycerz&a!"
- set {klasa.rycerz.%player%} to true
- else:
- send "{@tag}Juz wybrales te klase!"
- if line 4 is "&f&lLUCZNIK":
- if {klasa.lucznik.%player%} is false:
- set {klasa.rycerz.%player%} to false
- remove diamond sword from player's inventory
- remove 2 enchanted golden apple from player's inventory
- give 1 stone sword of sharpness 1 and knockback 2 named "&e&lNoz" to player
- give 1 bow of power 3 and flame 1 and infinity 1 named "&e&lLuk" to player
- give 1 arrow named "&e&lStrzala" to player
- send "{@tag}Wybrales klase &blucznik&a!"
- set {klasa.lucznik.%player%} to true
- else:
- send "{@tag}Juz wybrales te klase!"
- if line 2 is "&b&lWyjdz":
- set {druzyna.red.%player%} to false
- set {druzyna.blue.%player%} to false
- remove player from {event.red::*}
- remove player from {event.blue::*}
- set {event.dolaczyl.%player%} to false
- teleport the player to {event.spawn}
- send "{@tag}Wyszedles z eventu!"
- clear player's inventory
- remove 1 from {event::ilosc}
- on respawn:
- if {druzyna.red.%victim%} is true:
- if health of victim is less than 1:
- teleport the victim to {event.red}
- if {druzyna.blue.%victim%} is true:
- if health of victim is less than 1:
- teleport the victim to {event.blue}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement