So I made a skript but it's not working.
so basically, when a player runs command 'lp user [playername] parent set owner'. the console sets the player to default rank, but its not working.
can anyone fix it..
code_language.skript:
on command "/lp user * parent set owner":
trigger:
set {_playerName} to arg-1
cancel event
if {_playerName} is set:
set {_player} to player named {_playerName}
if {_player} is online:
execute console command "/lp user {_playerName} parent set default"
send "{_player} &cYou cannot set your parent to 'owner'. Changing to default rank."
so basically, when a player runs command 'lp user [playername] parent set owner'. the console sets the player to default rank, but its not working.
can anyone fix it..