on first join:
set {kayitolmadi.%player%} to 1
on join:
set {girisyapmadi.%player%} to 1
if {kayitolmadi.%player%} is greater than 0:
set {sifrem.%player%} to 0
send "&6&lSunucumuza hosgeldiniz!" to player
send "&6&lKayit olmak icin /kayitol <sifre> <sifre>" to player
wait 10 second
if {girisyapmadi.%player%} is greater than 0:
kick player due to "&c&lZaman asimi algilandi! Tekrar giris yapmayi deneyiniz."
else:
send "&6&lSunucumuza hosgeldiniz!" to player
send "&6&lGiris yapmak icin /giris <sifre>" to player
wait 10 second
if {girisyapmadi.%player%} is greater than 0:
kick player due to "&c&lZaman asimi algilandi! Tekrar giris yapmayi deneyiniz."
command /kayitol <text> <text>:
trigger:
if {kayitolmadi.%player%} is greater than 0:
if arg 1 is set:
if arg 2 is set:
if arg 1 is arg 2:
send "&2&lBasari ile kayit oldunuz!" to player
set {girisyapmadi.%player%} to 0
set {kayitolmadi.%player%} to 0
set {sifrem.%player%} to arg 1
else:
send "&c&lSifreler uyusmuyor!" to player
else:
send "&c&lZaten kayitlisin!" to player
command /giris <text>:
trigger:
if {girisyapmadi.%player%} is greater than 0:
if arg 1 is set:
if arg 1 is "%{sifrem.%player%}%":
send "&2&lBasari ile giris yapildi!" to player
set {girisyapmadi.%player%} to 0
else:
send "&c&lYanlis sifre!" to player
else:
send "&c&lZaten giris yaptin!" to player
on chat:
if {girisyapmadi.%player%} is greater than 0:
cancel event
send "&c&lOnce giris yap!" to player
on command:
if {girisyapmadi.%player%} is greater than 0:
if command contains "giris":
else:
if command contains "kayitol":
else:
cancel event
send "&c&lOnce giris yap!" to player
on any move:
if {girisyapmadi.%player%} is greater than 0:
cancel event
on place:
if {girisyapmadi.%player%} is greater than 0:
cancel event
send "&c&lOnce giris yap!" to player
on break:
if {girisyapmadi.%player%} is greater than 0:
cancel event
send "&c&lOnce giris yap!" to player