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.
29 lines
1.2 KiB
29 lines
1.2 KiB
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<UUID, UserInfo> m_UserInfoArray = new HashMap<UUID, UserInfo>(); |
|
|
|
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())); |
|
} |
|
} |