BetterShardsListener.java 文件源码

java
阅读 24 收藏 0 点赞 0 评论 0

项目:BetterShards 作者:
@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);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号