1import org.bukkit.event.EventHandler;
2import org.bukkit.event.Listener;
3import org.bukkit.event.player.PlayerJoinEvent;
4
5public class MyListener implements Listener {
6 @EventHandler
7 public void onPlayerJoin(PlayerJoinEvent event) {
8 //do something
9 }
10}