options: prefix: &f&l[&9&lHOGWART&f&l]&c command /smic [] [] [] []: executable by: console and player trigger: if player has permission "smic.admin": if arg 1 is "dyrektor": if arg 2 is set: {grupa.%arg 2%} is "dyrektor": set {grupa.%arg 2%} to "uczen" send "{@prefix} Odebrano Ci uprawnienia &6&lDYREKTORA Szkoly Magii i Czarodziejstwa w Hogwarcie!" to arg 2 parsed as player send "{@prefix} Odebrano uprawnienia &6&lDYREKTORA graczowi &4&b%arg 2%!" to executor broadcast "{@prefix} Gracz &4&b%arg 2%&c nie jest juz &6&lDYREKTOREM Szkoly Magii i Czarodziejstwa w Hogwarcie!" stop else: set {grupa.%arg 2%} to "dyrektor" send "{@prefix} Mianowano Cie &6&lDYREKTOREM Szkoly Magii i Czarodziejstwa w Hogwarcie!" to arg 2 parsed as player send "{@prefix} Mianowano &6&lDYREKTOREM gracza &4&b%arg 2%&c" to executor broadcast "{@prefix} Gracz &4&b%arg 2%&c zostal &6&lDYREKTOREM Szkoly Magii i Czarodziejstwa w Hogwarcie!" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Poprawne uzycie: &c/smic dyrektor [nick]" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 1 is "profesor": if arg 2 is set: {grupa.%arg 2%} is "profesor": set {grupa.%arg 2%} to "uczen" send "{@prefix} Odebrano Ci uprawnienia &5&lPROFESORA Szkoly Magii i Czarodziejstwa w Hogwarcie!" to arg 2 parsed as player send "{@prefix} Odebrano uprawnienia &5&lPROFESORA graczowi &4&b%arg 2%!" to executor broadcast "{@prefix} Gracz &4&b%arg 2%&c nie jest juz &5&lPROFESOREM Szkoly Magii i Czarodziejstwa w Hogwarcie!" stop else: set {grupa.%arg 2%} to "profesor" send "{@prefix} Mianowano Cie &5&lPROFESOREM Szkoly Magii i Czarodziejstwa w Hogwarcie!" to arg 2 parsed as player send "{@prefix} Mianowano &5&lPROFESOREM gracza &4&b%arg 2%&c" to executor broadcast "{@prefix} Gracz &4&b%arg 2%&c zostal &5&lPROFESOREM Szkoly Magii i Czarodziejstwa w Hogwarcie!" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Poprawne uzycie: &c/smic profesor [nick]" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 1 is "listap" or "listaprzedmiotow": if arg 2 is "add" or "dodaj": if arg 3 is set: if {listaprzedmiotow::*} contains arg 3: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podany przedmiot jest juz na liscie!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: add arg 3 to {listaprzedmiotow::*} send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Dodano &c%arg 3%&4 na liste przedmiotow!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podaj nazwe przedmiotu!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 2 is "remove" or "usun": if {listaprzedmiotow::*} contains arg 3: remove arg 3 from {listaprzedmiotow::*} send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Usunieto &c%arg 3%&4 z listy przedmiotow!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podanego przedmiotu nie ma na liscie!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 2 is not set: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Obecne przedmioty na liscie:" send "&c%{listaprzedmiotow::*}%" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else if arg 2 is not "remove" or "usun" or "add" or "dodaj": send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Poprawne uzycie: &c/smic listap [dodaj/usun] [nazwa]" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 1 is "przedmiot": if arg 2 is set: if arg 3 is "dodaj" or "add": if arg 4 is set: if {grupa.%arg 2%} is "profesor": if {listaprzedmiotow::*} contains arg 4: if {uczacy.%arg 4%} is set: if {uczacy.%arg 4%} is arg 2: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podany przedmiot jest juz na liscie tego profesora!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Tego przedmiotu uczy &c%{uczacy.%arg 4%}%" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: set {uczacy.%arg 4%} to arg 2 send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Profesor &c%arg 2%&4 naucza od teraz przedmiotu &c%arg 4%" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Tego przedmiotu nie ma na liscie!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podany gracz nie jest profesorem!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podaj przedmiot!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 3 is "remove" or "usun": if arg 4 is set: if {grupa.%arg 2%} is "profesor": if {listaprzedmiotow::*} contains arg 4: if {uczacy.%arg 4%} is arg 2: delete {uczacy.%arg 4%} send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Profesor &c%arg 2%&4 nie naucza juz przedmiotu &c%arg 4%" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Ten profesor nie naucza tego przedmiotu!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Tego przedmiotu nie ma na liscie!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podany gracz nie jest profesorem!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podaj przedmiot!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else if arg 3 is not "remove" or "usun" or "add" or "dodaj": send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Poprawne uzycie: &c/smic przedmiot [nick] [dodaj/usun] [nazwa]" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podaj nick!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" if arg 1 is "opiekun": if arg 2 is "add" or "dodaj": if arg 3 is "gryffindor" or "ravenclaw" or "hufflepaf" or "slytherin": if arg 4 is set: if {grupa.%arg 4%} is "profesor": if {opiekunowie::*} contains arg 4: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podany profesor jest juz opiekunem!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: set {opiekun.%arg 3%} to arg 4 add arg 4 to {opiekunowie::*} broadcast "{@prefix} Profesor &4&b%arg 4%&c zostal opiekunem domu &2&l%arg 3%!" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podany gracz nie jest profesorem!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podaj nick profesora!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podany dom nie istnieje! Wybierz sposrod &cGryffindor&4, &6Hufflepaf&4, &9Ravenclaw&4, &2Slytherin" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 2 is "usun" or "remove": if arg 3 is "gryffindor" or "ravenclaw" or "hufflepaf" or "slytherin": if arg 4 is set: if {grupa.%arg 4%} is "profesor": if {opiekunowie::*} contains arg 4: remove arg 4 from {opiekunowie::*} set {opiekun.%arg 3%} to "brak" broadcast "{@prefix} Profesor &4&b%arg 4%&c nie jest juz opiekunem domu &2&l%arg 3%!" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podany profesor nie jest opiekunem!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podany gracz nie jest profesorem!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podaj nick profesora!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podany dom nie istnieje! Wybierz sposrod &cGryffindor&4, &6Hufflepaf&4, &9Ravenclaw&4, &2Slytherin" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 1 is "opiekunowie": send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Opiekunowie domow:" send "&cGryffindor: &f%{opiekun.gryffindor}%" send "&6Hufflepaf: &f%{opiekun.hufflepaf}%" send "&9Ravenclaw: &f%{opiekun.ravenclaw}%" send "&2Slytherin: &f%{opiekun.slytherin}%" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 1 is "ustaw" or "set": if arg 2 is set: set {%arg 2%} to location of player send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Ustawiono &c%arg 2%&4!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Poprawne uzycie: &c/smic ustaw [nazwa]" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" if arg 1 is "usun" or "delete" or "remove": if arg 2 is set: delete {%arg 2%} send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Usunieto &c%arg 2%&4!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Poprawne uzycie: &c/smic usun [nazwa]" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 1 is "dom": if arg 2 is set: if arg 3 is "gryffindor" or "slytherin" or "ravenclaw" or "hufflepaf": remove arg 2 from {gryffindor::*} remove arg 2 from {hufflepaf::*} remove arg 2 from {ravenclaw::*} remove arg 2 from {slytherin::*} wait 1 tick add arg 2 to {%arg 3%::*} send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Przydzielono gracza &c%arg 2%&4 do domu &c%arg 3%" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "{@prefix} Przeniesiono Cie do domu &c%arg 3%&4! Zglos sie do dyrektora po nowa szate!" to arg 2 parsed as player remove all leather tunic from player's inventory stop if player has permission "smic.prof": if arg 1 is "punkty": if arg 2 is "gryffindor" or "ravenclaw" or "hufflepaf" or "slytherin": if arg 3 is "dodaj": if arg 4 is set: set {_l} to arg 4 parsed as number add {_l} to {punkty.%arg 2%} send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Dodano &c%arg 4% pkt&4 domowi &c%arg 2%" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" broadcast "{@prefix} Profesor &c%player%&4 dodal &c%arg 4% pkt&4 domowi &c%arg 2%" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podaj ilosc punktow!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 3 is "odejmij": if arg 4 is set: set {_l} to arg 4 parsed as number remove {_l} from {punkty.%arg 2%} send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Odjeto &c%arg 4% pkt&4 domowi &c%arg 2%" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" broadcast "{@prefix} Profesor &c%player%&4 odjal &c%arg 4% pkt&4 domowi &c%arg 2%" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podaj ilosc punktow!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 3 is not set: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Liczba punktow domu &c%arg 2%: &9%{punkty.%arg 2%}%" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podany dom nie istnieje! Wybierz sposrod &cGryffindor&4, &6Hufflepaf&4, &9Ravenclaw&4, &2Slytherin" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 1 is "lekcja": if arg 2 is "start" or "rozpocznij": if arg 3 is set: if {przedmioty.%player%::*} contains arg 3: if {grupa.%player%} is "profesor": {lekcja.%arg 3%} is "odliczanie" or "trwa": send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podana lekcja jest juz zaplanowana!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: broadcast "{@prefix} Niedlugo rozpocznie sie lekcja &4%arg 3%&c prowadzona przez &4%player%&c! Aby sie zapisac uzyj &4/smic dolacz %arg 3%" set {lekcja.%arg 3%} to "odliczanie" wait 10 seconds loop {uczniowie.%arg 3%::*}: teleport loop-value to {%arg 3%} broadcast "{@prefix} Lekcja &4%arg 3%&c sie rozpoczela!" set {lekcja.%arg 3%} to "trwa" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Nie jestes profesorem!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Nie nauczasz tego przedmiotu!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podaj nazwe lekcji!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 2 is "stop" or "zakoncz" or "koniec": if arg 3 is set: if {lekcja.%arg 3%} is "trwa": broadcast "{@prefix} Lekcja &4%arg 3%&c zostala zakonczona!" set {lekcja.%arg 3%} to "stop" loop {uczniowie.%arg 3%::*}: teleport loop-value to {spawn} delete {uczniowie.%arg 3%::*} stop if {lekcja.%arg 3%} is "odliczanie": send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Zaczekaj, az lekcja sie zacznie!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Lekcja nie trwa obecnie!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podaj nazwe lekcji!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 2 is "info": if arg 3 is set: {listaprzedmiotow::*} contains arg 3: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Przedmiot: &9%arg 3%" send "&4Profesor uczacy: &9%{uczacy.%arg 3%}%" send "&4Status lekcji: &9%{lekcja.%arg 3%}%" send "&4Liczba uczniow na lekcji: &9%size of {uczniowie.%arg 3%::*}%" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Tego przedmiotu nie ma na liscie!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop else: send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4Podaj nazwe przedmiotu!" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 1 is "help" or "pomoc": send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" send "&4/smic dyrektor [nick]&c - mianuje/odbiera uprawnienia dyrektora" send "&4/smic profesor [nick]&c - mianuje/odbiera uprawnienia profesora" send "&4/smic listaprzedmiotow &c- pokazuje obecna liste przedmiotow" send "&4/smic listap dodaj [nazwa]&c - dodaje podany przedmiot na liste" send "&4/smic przedmiot [nick] [dodaj/usun] [nazwa]&c - dodaje/usuwa przedmiot dla danego profesora" send "&4/smic opiekunowie &c- pokazuje liste opiekunow domow" send "&4/smic opiekun [dodaj/usun] [gryffindor/hufflepaf/ravenclaw/slytherin] [nick]&c - mianuje/odbiera uprawnienia podanego gracza opiekunem domu" send "&4/smic [ustaw/usun] [nazwa]&c - ustawia/usuwa lokacje" send "&4/smic lekcja [start/stop/info] [nazwa] &c- zaczyna/konczy/podaje info lekcje" send "&4/smic punkty [gryffindor/ravenclaw/slytherin/hufflepaf] ([dodaj/odejmij])&c - Dodaje/odejmuje (pokazuje) punkty dla danego domu" send "&4/smic dom [nick] [nowy dom]&c - zmienia dom gracza" send "&4/smic pomoc&c - pokazuje liste komend" send " " send "&4/smic dolacz/opusc [nazwa]&c - dolacza/opuszcza do lekcji" send "&4/smic tiara&c - tiara przydzialu" send "&7=-=-=-=-=-=-=-=-=-=-&6&lHOGWART&7=-=-=-=-=-=-=-=-=-=-" stop if arg 1 is not set: execute player command "smic help" stop if player has permission "smic.gracz": if arg 1 is "dolacz" or "join": if arg 2 is set: if {lekcja.%arg 2%} is "odliczanie": send "{@prefix} Dodano do listy uczniow na lekcje &4%arg 2%" wait 1 tick add player to {uczniowie.%arg 2%::*} stop else: send "{@prefix} Lekcja juz sie zaczela, badz nie jest zaplanowana!" stop else: send "{@prefix} Podaj nazwe lekcji!" stop if arg 1 is "opusc" or "leave" or "wyjdz": if arg 2 is set: if {lekcja.%arg 2%} is "trwa" or "odliczanie": remove player from {uczniowie.%arg 2%::*} send "{@prefix} Usunieto z listy uczniow na lekcje &4%arg 2%" wait 1 tick teleport player to {spawn} stop else: send "{@prefix} Lekcja nie istnieje, lub nie jest zaplanowana!" stop if arg 1 is "tiara": {grupa.%player%} is "uczen": send "{@prefix} Masz juz dom!" stop else: chance of 25%: send "{@prefix} Przydzielono Cie do domu &c&lGRYFFINDOR" give 1 leather tunic named "&c&lSzata Gryffindoru" with lore "&7Podstawowy ubior czarodzieja" to player loop items in player's inventory: loop-item is leather tunic: dye loop-item red add player to {gryffindor::*} teleport player to {gryffindor} set {grupa.%player%} to "uczen" stop chance of 25%: send "{@prefix} Przydzielono Cie do domu &2&lSLYTHERIN" give 1 leather tunic named "&2&lSzata Slytherinu" with lore "&7Podstawowy ubior czarodzieja" to player loop items in player's inventory: loop-item is leather tunic: dye loop-item green add player to {slytherin::*} teleport player to {slytherin} set {grupa.%player%} to "uczen" stop chance of 25%: send "{@prefix} Przydzielono Cie do domu &6&lHUFFLEPAF" give 1 leather tunic named "&6&lSzata Hufflepafu" with lore "&7Podstawowy ubior czarodzieja" to player loop items in player's inventory: loop-item is leather tunic: dye loop-item yellow add player to {hufflepaf::*} teleport player to {hufflepaf} set {grupa.%player%} to "uczen" stop chance of 25%: send "{@prefix} Przydzielono Cie do domu &9&lRAVENCLAW" give 1 leather tunic named "&9&lSzata Ravenclawu" with lore "&7Podstawowy ubior czarodzieja" to player loop items in player's inventory: loop-item is leather tunic: dye loop-item blue add player to {ravenclaw::*} teleport player to {ravenclaw} set {grupa.%player%} to "uczen" stop on load: set {opiekun.gryffindor} to "brak" set {opiekun.hufflepaf} to "brak" set {opiekun.ravenclaw} to "brak" set {opiekun.slytherin} to "brak" stop on rightclick with leather cap: name of player's tool is "&e&lTIARA PRZYDZIALU": execute player command "smic tiara" remove all leather cap from player's inventory stop every 1 second: loop all players in world "lobby": {grupa.%loop-player%} is not "uczen": loop-player doesn't have leather cap in inventory: give 1 leather cap named "&e&lTIARA PRZYDZIALU" with lore "&7Tiara, przydzielajaca od wiekor||&7czarodziejow do ich domow!" to loop-player stop else: stop