on join:
if {voucher::%player%} is not true:
send "&cMusisz kupic voucher!"
send "&cAby wpisac voucher uzyj /voucher <kod>"
command /voucher [<text>] [<text>]:
trigger:
if arg-1 is "admin":
if player has permission "admin.getvoucher":
if arg 2 is set:
set {voucher::%arg-2%} to getCode("a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,r,s,t,u,w,y,z", 8)
send "&cUstawiono voucher dla &e%arg-2% &cna: &e%{voucher::%arg-2%}%"
else if arg-1 is set:
if {voucher::%player%} is arg-1:
set {voucher::%player%} to true
send "&aDobry kod!"
else:
send "&cBledny voucher!"
wymaga marudacode
/voucher admin <nick> - generuje voucher dla <nick>
/voucher <kod> - wpisuje kod