@EventHandler(priority = EventPriority.MONITOR)
public void onPreLogin(AsyncPlayerPreLoginEvent event) {
plugin.getLookupBoss().scheduleLookup(event.getAddress(), optBl -> optBl.ifPresent(proxyBlacklist -> {
AsyncProxyDetectedEvent detectedEvent = new AsyncProxyDetectedEvent(proxyBlacklist, event.getAddress(), event.getUniqueId());
plugin.getServer().getPluginManager().callEvent(detectedEvent);
this.onJoinActions.put(detectedEvent.getUuid(), detectedEvent.getActions());
this.finders.put(event.getUniqueId(), proxyBlacklist);
}));
}
ConnectionListener.java 文件源码
java
阅读 28
收藏 0
点赞 0
评论 0
项目:mopm
作者:
评论列表
文章目录