package org.poopki.duckdns.user_db; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.player.PlayerJoinEvent; public class UserJoin implements Listener { private UserInfoArray m_InfoArrayInstance; UserJoin(UserInfoArray m_UIA){ m_InfoArrayInstance = m_UIA; } @EventHandler public void PlayerLogin(PlayerJoinEvent e) { Player p = e.getPlayer(); if(m_InfoArrayInstance.m_UserInfoArray.containsKey(p.getUniqueId())){ m_InfoArrayInstance.getUserInfo(p); } else{ m_InfoArrayInstance.NewUserInfo(p); } } }