Variables: {budglobal} = false options: tag: &c&LA&a&LProtect &e» on place: if {budglobal} is true: cancel event message "{@tag} &cAdministrator wylaczył tymczasowo budowanie" to player on break: if {budglobal} is true: cancel event message "{@tag} &cAdministrator wylaczył tymczasowo niszczenie" to player command /ap [] []: permission: twoja.permisja permission message: &4Nie masz permisji! trigger: if arg 1 is not set: send "&b ADMINOPROTECT " if arg 1 is "buildoff": set {budglobal} to false send "{@tag} &EBudowanie zostało &awlaczone przez &b%player%" if arg 1 is "buildon": set {budglobal} to true send "{@tag} &EBudowanie zostało &4wylaczone przez &b%player%" options: chat: false #Czy mozna pisac cos na chacie bez zalogowania sie on command: if {log.%player%} is true: else: if command is "protectpassword " or "pp" or "setprotect" or "l": else: cancel event send "{@tag} Wpisz &c/pp haslo - Aby odzyskac uprawnienia " send "{@tag} Wpisz &c/setprotect haslo haslo - Aby zalozyc blokade na uprawnienia" on join: set {pos.%player%} to location of player set {log.%player%} to false command /setprotect [] []: trigger: if {pass.%player%} is not set: if arg 1 is not set: send "{@tag} &c/register password password" if arg 2 is not set: send "{@tag} &c/register password password" else: if arg 1 is arg 2: set {pass.%player%} to arg 1 set {log.%player%} to true send "{@tag} &cPomyslna rejestracja" delete {pos.%player%} else: send "{@tag} &cNie masz takich samych hasel" else: send "{@tag} &cPosiadasz juz blokade na permisje,nie mozesz miec 2!" command /protectpassword []: aliases: /pp, /paslogin trigger: if {pass.%player%} is not set: send "{@tag} &cNie posiadasz blokady na uprawnienia :D" else: if arg 1 is "%{pass.%player%}%": if {log.%player%} is false: set {log.%player%} to true send "{@tag} &cWykryto prawidlowe haslo!" send "{@tag} &cUprawnienia zostały oddane!" spawn 100 of particle witch magic:1 offset by 0.6, 0.10, 0.7 at the player spawn 100 of particle witch magic:1 offset by 0.6, 0.10, 0.7 at the player spawn 100 of particle witch magic:1 offset by 0.6, 0.10, 0.7 at the player spawn 100 of particle witch magic:1 offset by 0.6, 0.10, 0.7 at the player spawn 100 of particle witch magic:1 offset by 0.6, 0.10, 0.7 at the player delete {pos.%player%} else: send "{@tag} &cJuz masz dostep do permisji nie mozesz zrobic tego 2 raz!" command /aunregister: trigger: delete {pass.%player%} send "&cUsunieto blokade uprwanien" kick the player due to "&cUsunieto blokade uprawnienia"