script options: $ use permissions command /aduty [] []: trigger: if player has permission "admin": if arg 1 isn't set: send "Poprawne uzycie: /aduty <&cdodaj&f/&cusun&f> <&cpermisja&f>" stop if arg 2 isn't set: send "Poprawne uzycie: /aduty <&cdodaj&f/&cusun&f> <&cpermisja&f>" stop if arg 1 isn't "dodaj" or "usun": send "Poprawne uzycie: /aduty <&cdodaj&f/&cusun&f> <&cpermisja&f>" stop if arg 1 is "dodaj": if arg 2 is set: if {duty::*} is contain "%arg 2%": send "&cTaka permisja jest juz dodana!" stop else: add arg 2 to {duty::*} send "&aPoprawnie dodales permisje: &7%arg 2%" stop if arg 1 is "usun": if arg 2 is set: if {duty::*} does not contain "%arg 2%": send "&cTaka permisja nie jest dodana!" stop else: remove arg 2 from {duty::*} send "&aPoprawnie usunales permisje: &7%arg 2%" stop else: send "&cNie posiadasz permisji, aby uzyc tej komendy!" stop on rightclick with stick: if name of player's tool is "&k--&r &2&lDUTY &k--": if player has permission "admin": if {duty::*} is not set: send "&cPermisje w duty nie sa uzupelnione!" send "&cDodaje je: &f/duty " stop else: if {admin::%player%} is true: loop {duty::*}: remove loop-value from player's permission send player title "&k--&r &2&lDUTY &k--" with subtitle "&aPoprawnie &4odebrales &aswoje permisje!" for 5 seconds set {admin::%player%} to false stop else: loop {duty::*}: add loop-value to player's permission send player title "&k--&r &2&lDUTY &k--" with subtitle "&aPoprawnie &2odebrales &aswoje permisje!" for 5 seconds set {admin::%player%} to true stop else: send "&cOjojoj... Nie wiem skad to masz, ale musze Ci to zabrac..." remove 1 stick named "&k--&r &2&lDUTY &k--" from player's inventory stop