spigot api how to change join message code example
Example 1: spigot custom join message
@EventHandler
public void onJoin(PlayerJoinEvent e) {
e.setJoinMessage("Welcome, " + e.getPlayer().getDisplayName());
}
Example 2: spigot disable join message
@EventHandler
public void onJoin(PlayerJoinEvent e) {
e.setJoinMessage("");
}