📜  离线事件插口示例 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:47.902000             🧑  作者: Mango

代码示例1
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;

public class MyListener implements Listener {
     @EventHandler
     public void onPlayerJoin(PlayerJoinEvent event) {
        //do something
     }
}