on first join:
set {_l} to location at (100, 100, 100)
teleport player to {_l}
send "&7Jak masz na imie i nazwisko?"
send "&a/dane <imie> <nazwisko> <wiek>"
command /dane [<text>] [<text>] [<number>]:
trigger:
if {dane::imie::%player%} is not set:
if arg 3 is set:
set {dane::imie::%player%} to arg 1
set {dane::nazwisko::%player%} to arg 2
set {dane::wiek::%player%} to arg 3
send "&7Pomyslnie sie zarejestrowano!"
set yaml value "Dane.%player%.Imie" from file "Dane.yml" to arg 1
set yaml value "Dane.%player%.Nazwisko" from file "Dane.yml" to arg 2
set yaml value "Dane.%player%.Wiek" from file "Dane.yml" to arg 3
else:
send "&cBLAD!: &7Poprawne uzycie: &4/dane <imie> <nazwisko> <wiek>"
else:
send "&cBLAD!: &7Jestes juz zarejestrowany!"