Check out example codes for "spigot disable join message". It will help you in understanding the concepts better.

Code Example 1

@EventHandler
public void onJoin(PlayerJoinEvent e) {
  e.setJoinMessage("");
}

Learn ReactJs, React Native from akashmittal.com