options: wersja: 0.4 aliases: nomove = 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16, 17, 18, 21, 24, 35, 44, 45, 49, 60, 56, 73, 78, 79, 80, 81, 82, 83, 86, 87, 88, 89, 99, 100, 103, 106, 110, 112, 114, 121, 127, 129, 153, 159, 161, 162, 162, 172, 174 on load: set {mcauth.msg::no-pass} to "&c&LPodaj Hasło" set {mcauth.msg::not-match} to "&c&LHasła nie zgadzają się" set {mcauth.msg::already-registered} to "&c&LJesteś już zarejestrowany" set {mcauth.msg::registered} to "&2&LDziękujemy za rejestrację &6;)" set {mcauth.msg::already-logged} to "&c&LJesteś już zalogowany" set {mcauth.msg::bad-pass} to "&c&LNieprawidłowe hasło" set {mcauth.msg::not-registered} to "&c&LNie jesteś zarejestowany" set {mcauth.msg::login} to "&aHaslo zaakceptowane!" set {mcauth.msg::nopermission} to "&4&LNie masz uprawnień" #Ustawienia# clear {mcauth.allowsymbol::*} add "1" to {mcauth.allowsymbol::*} add "0" to {mcauth.allowsymbol::*} add "2" to {mcauth.allowsymbol::*} add "3" to {mcauth.allowsymbol::*} add "4" to {mcauth.allowsymbol::*} add "5" to {mcauth.allowsymbol::*} add "6" to {mcauth.allowsymbol::*} add "7" to {mcauth.allowsymbol::*} add "8" to {mcauth.allowsymbol::*} add "9" to {mcauth.allowsymbol::*} add "j" to {mcauth.allowsymbol::*} add "q" to {mcauth.allowsymbol::*} add "w" to {mcauth.allowsymbol::*} add "e" to {mcauth.allowsymbol::*} add "r" to {mcauth.allowsymbol::*} add "t" to {mcauth.allowsymbol::*} add "y" to {mcauth.allowsymbol::*} add "u" to {mcauth.allowsymbol::*} add "i" to {mcauth.allowsymbol::*} add "o" to {mcauth.allowsymbol::*} add "p" to {mcauth.allowsymbol::*} add "a" to {mcauth.allowsymbol::*} add "s" to {mcauth.allowsymbol::*} add "d" to {mcauth.allowsymbol::*} add "f" to {mcauth.allowsymbol::*} add "g" to {mcauth.allowsymbol::*} add "h" to {mcauth.allowsymbol::*} add "j" to {mcauth.allowsymbol::*} add "k" to {mcauth.allowsymbol::*} add "l" to {mcauth.allowsymbol::*} add "z" to {mcauth.allowsymbol::*} add "x" to {mcauth.allowsymbol::*} add "c" to {mcauth.allowsymbol::*} add "v" to {mcauth.allowsymbol::*} add "b" to {mcauth.allowsymbol::*} add "n" to {mcauth.allowsymbol::*} add "m" to {mcauth.allowsymbol::*} set {mcauth.cfg::force-sg} to false set {mcauth.cfg::force-deop} to false set {mcauth.cfg::maxnicknamelength} to 15 set {mcauth.badsymbol::1} to "?" set {mcauth.badsymbol::2} to "!" clear {mcauth.allowop::*} set {mcauth.allowop::jamiejoe99} to true on join: set {posx::%UUID of player%} to x-location of player set {posy::%UUID of player%} to y-location of player set {posz::%UUID of player%} to z-location of player if {mcauth.logged::%UUID of player%} is not set: set {mcauth.logged::%UUID of player%} to false if {mcauth.logged::%UUID of player%} is true: kick the player due to "&f<en nick juz gra" stop if {mcauth.cfg::force-deop} is true: if player is op: deop the player if {mcauth.cfg::force-deop} is false: if {mcauth.allowop::%UUID of player%} is true: op the player if {mcauth.allowop::%UUID of player%} is not set: if player is op: deop the player set {_nazwa} to "%player%" if {mcauth.data-registration::%UUID of player%} is not set: loop {mcauth.badsymbol::*}: if {_nazwa} contain "%loop-value%": kick the player due to "&c&LNazwa zawiera nieprawidłowy symbol" wait 1 second ban the player because "Logowanie z nieprawidłowym symbolem" stop set {_length} to length of {_nazwa} if {_length} is greater than {mcauth.cfg::maxnicknamelength}: kick the player due to "&c&LNazwa jest zbyt długa" stop loop {mcauth.allowsymbol::*}: replace all loop-value with "" in {_name} if length of {_name} is greater than or equal to 1: kick the player due to "&c&LNazwa zawiera nieprawidłowy symbol" stop if {mcauth.cfg::force-sg} is true: if gamemode of player is not survival: set gamemode of player to survival if {mcauth.cfg::force-sg} is false: if {mcauth.gamemode::%UUID of player%} is not set: set {mcauth.gamemode::%UUID of player%} to survival if gamemode of player is not {mcauth.gamemode::%UUID of player%}: set gamemode of player to {mcauth.gamemode::%UUID of player%} if {mcauth.name::%UUID of player%} is not set: set {mcauth.name::%UUID of player%} to {_nazwa} if {mcauth.uuid::%{_nazwa}%} is not set: set {mcauth.uuid::%{_nazwa}%} to UUID of player if {mcauth.name::%UUID of player%} is not {_nazwa}: set {mcauth.name::%UUID of player%} to {_nazwa} set {mcauth.player::%UUID of player%} to player if {mcauth.session::%UUID of player%} is not set: set {mcauth.session::%UUID of player%} to true if {mcauth.ip::%UUID of player%} is IP of player: set {mcauth.logged::%UUID of player%} to true set {mcauth.session::%UUID of player%} to false set {mcauth.lastlogin::%UUID of player%} to now send "&aSesja logowania" stop set {mcauth.session::%UUID of player%} to true while {mcauth.session::%UUID of player%} is true: if {mcauth.data-registration::%UUID of player%} is not set: send "&c&LProsze sie zarejestrować przy uzyciu &6/register " wait 5 second if {mcauth.data-registration::%UUID of player%} is set: if {mcauth.logged::%UUID of player%} is false: send "&2Prosze sie zalogowac przy uzyciu &6/login " wait 5 second on quit: set {mcauth.logged::%UUID of player%} to false set {mcauth.gamemode::%UUID of player%} to gamemode of player command /login []: aliases: l trigger: if {mcauth.data-registration::%UUID of player%} is not set: send {mcauth.msg::not-registered} stop if {mcauth.logged::%UUID of player%} is true: send {mcauth.msg::already-logged} stop if arg 1 is not set: send {mcauth.msg::no-pass} stop if hashed arg 1 is not {mcauth.password::%UUID of player%}: send {mcauth.msg::bad-pass} stop set {mcauth.logged::%UUID of player%} to true set {mcauth.ip::%UUID of player%} to IP of player set {mcauth.session::%UUID of player%} to false set {mcauth.lastlogin::%UUID of player%} to now send {mcauth.msg::login} stop command /register [] []: aliases: r trigger: if {mcauth.data-registration::%UUID of player%} is set: send {mcauth.msg::already-registered} stop if arg 1 is not set: send {mcauth.msg::no-pass} stop if arg 2 is not set: send {mcauth.msg::no-pass} stop set {_pass-1} to arg 1 set {_pass-2} to arg 2 if {_pass-1} is not {_pass-2}: send {mcauth.msg::not-match} stop set {mcauth.data-registration::%UUID of player%} to now set {mcauth.password::%UUID of player%} to hashed arg 1 set {mcauth.ip::%UUID of player%} to IP of player set {mcauth.logged::%UUID of player%} to true set {mcauth.session::%UUID of player%} to false set {mcauth.lastlogin::%UUID of player%} to now send {mcauth.msg::registered} command /logout: trigger: if player doesn't have permission "mcauth.admin": send {mcauth.msg::nopermission} stop set {mcauth.logged::%UUID of player%} to false set {mcauth.session::%UUID of player%} to true set {posx::%UUID of player%} to x-location of player set {posy::%UUID of player%} to y-location of player set {posz::%UUID of player%} to z-location of player send "&2Wylogowano" on walking on nomove: if {mcauth.logged::%UUID of player%} is false: if difference between x-location of player and {posx::%UUID of player%} is bigger than 0.5: teleport player to location {posx::%UUID of player%}, {posy::%UUID of player%}, {posz::%UUID of player%} stop if difference between y-location of player and {posy::%UUID of player%} is bigger than 0.5: teleport player to location {posx::%UUID of player%}, {posy::%UUID of player%}, {posz::%UUID of player%} stop if difference between z-location of player and {posz::%UUID of player%} is bigger than 0.5: teleport player to location {posx::%UUID of player%}, {posy::%UUID of player%}, {posz::%UUID of player%} on chat: if {mcauth.logged::%UUID of player%} is false: cancel event on command: if {mcauth.logged::%UUID of player%} is false: if command is not "login" or "register" or "l" or "r": cancel event on pick up: if {mcauth.logged::%UUID of player%} is false: cancel event on rightclick: if {mcauth.logged::%UUID of player%} is false: cancel event on leftclick: if {mcauth.logged::%UUID of player%} is false: cancel event on place: if {mcauth.logged::%UUID of player%} is false: cancel event on drop: if {mcauth.logged::%UUID of player%} is false: cancel event on block damage: if {mcauth.logged::%UUID of player%} is false: cancel event on teleport: if {mcauth.logged::%UUID of player%} is false: cancel event on damage: if {mcauth.logged::%UUID of attacker%} is false: cancel event if {mcauth.logged::%UUID of victim%} is false: cancel event command /mcauth [] []: trigger: if player doesn't have permission "mcauth.admin": send {mcauth.msg::nopermission} stop if arg 1 is not set: loop {mcauth.uuid::*}: send "%loop-index% %loop-value%" if arg 1 is "users": send "&2Lista Użytkowników" loop {mcauth.password::*}: set {_nazwa} to "%{mcauth.name::%loop-index%}%" send {_nazwa} stop if arg 1 is "setspawn": set {mcauth.cfg::spawn} to location of player send "&2Ustawiono Spawn" stop if arg 1 is "info": set {_nazwa} to arg 2 if {mcauth.uuid::%{_nazwa}%} is not set: send "&4&LNie zanleziono gracza" stop set {_uuid} to {mcauth.uuid::%{_nazwa}%} send "&2Nazwa: &f%{nazwa}%" send "&2Data rejestracji: &f%{mcauth.data-registration::%{_uuid}%}%" send "&2IP: &f%{mcauth.ip::%{_uuid}%}%" send "&2Ostatnie logowanie: &f%{mcauth.lastlogin::%{_uuid}%}%" if arg 1 is "clear": delete {mcauth.lastlogin::*} delete {mcauth.ip::*} delete {mcauth.data-registration::*} delete {mcauth.uuid::*} delete {mcauth.password::*} delete {mcauth.logged::*} delete {posx::*} delete {posy::*} delete {posz::*} delete {mcauth.session::*} delete {mcauth.player::*} delete {mcauth.name::*} send "Usunięto" stop