Example
In this example, a storage object is created for the config.yml
file and sets the default value join-message
. Then when the player event PlayerJoinEvent
is called it gets the storage value from the storage object, replaces %s
with the player name and sets it to the join message.
Last updated