You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
677 B

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 {
3 years ago
private UserInfoArray m_InfoArrayInstance;
UserJoin(UserInfoArray m_UIA){
3 years ago
m_InfoArrayInstance = m_UIA;
}
@EventHandler
public void PlayerLogin(PlayerJoinEvent e) {
Player p = e.getPlayer();
3 years ago
if(m_InfoArrayInstance.m_UserInfoArray.containsKey(p.getUniqueId())){
m_InfoArrayInstance.getUserInfo(p);
}
else{
m_InfoArrayInstance.NewUserInfo(p);
}
}
}