Пример #1
0
 @Override
 public void register() {
   plugin.getServer().getPluginManager().registerEvents(this, plugin);
 }
Пример #2
0
 @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
 public void onJoin(PlayerJoinEvent evt) {
   plugin.getChecker().checkItems(evt.getPlayer());
 }