Why he does not work
How should I solve him and let him show the player's ID
function getConfig(t : text):
set {player.join.message} to single value "player.join.message" get of "plugins/Join/config.yml"
on load:
if file "plugins/Join/" doesn't exists:
create folder "plugins/Join"
if file "plugins/Join/config.yml" doesn't exists:
create file "plugins/Join/config.yml"
wf "player.join.message: &aPlayer %player% Join game" to "plugins/Join/config.yml"
getConfig("true")
on join:
broadcast "%{player.join.message}%"
How should I solve him and let him show the player's ID
function getConfig(t : text):
set {player.join.message} to single value "player.join.message" get of "plugins/Join/config.yml"
on load:
if file "plugins/Join/" doesn't exists:
create folder "plugins/Join"
if file "plugins/Join/config.yml" doesn't exists:
create file "plugins/Join/config.yml"
wf "player.join.message: &aPlayer %player% Join game" to "plugins/Join/config.yml"
getConfig("true")
on join:
broadcast "%{player.join.message}%"