register events code example Example: how to register events bukikt Bukkit.getServer().getPluginManager().registerEvents(this, plugin);