@EventHandler(priority = EventPriority.LOWEST)
public void playerJoinedLobbyServer(AsyncPlayerPreLoginEvent event) {
if (!config.get("lobby").getBool())
return;
UUID uuid = event.getUniqueId();
if (st == null){ // Small race condition if someone logs on as soon as the server starts.
plugin.getLogger().log(Level.INFO, "Player logged on before async process was ready, skipping.");
return;
}
st.setInventoryIdentifier(uuid, InventoryIdentifier.IGNORE_INV);
}
BetterShardsListener.java 文件源码
java
阅读 23
收藏 0
点赞 0
评论 0
项目:BetterShards
作者:
评论列表
文章目录