package org.poopki.duckdns.user_db; import org.bukkit.entity.Player; import java.util.HashMap; import java.util.Map; import java.util.UUID; public class UserInfoArray { private AccountArray m_AccountArrayInstance; public static Map m_UserInfoArray = new HashMap(); UserInfoArray(AccountArray Instance){ m_AccountArrayInstance = Instance; } public void getUserInfo(Player p) { UserInfo m_UserInfo = m_UserInfoArray.get(p.getUniqueId()); p.sendMessage(m_UserInfo.getUserName() + m_UserInfo.getUserUUID() + ("중복 입장")); p.sendMessage(m_UserInfo.getUserUUID() +("Balance ")+m_AccountArrayInstance.getAccountInfo(p.getUniqueId())); } public void NewUserInfo(Player p) { m_UserInfoArray.put(p.getUniqueId(), new UserInfo(p.getUniqueId(), 0, 0, 0, m_AccountArrayInstance.putAccountInfo(p.getUniqueId()))); UserInfo m_UserInfo = m_UserInfoArray.get(p.getUniqueId()); p.sendMessage(m_UserInfo.getUserName() + m_UserInfo.getUserUUID() + ("초기 입장")); p.sendMessage(m_UserInfo.getUserUUID() +("Balance ")+m_AccountArrayInstance.getAccountInfo(p.getUniqueId())); } }