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.

45 lines
1.7 KiB

package org.poopki.duckdns.user_db.Research;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.inventory.InventoryClickEvent;
import org.poopki.duckdns.user_db.Array.AccountArray;
import org.poopki.duckdns.user_db.Array.FarmArray;
import org.poopki.duckdns.user_db.Array.NationArray;
import org.poopki.duckdns.user_db.Array.SquadArray;
import org.poopki.duckdns.user_db.Bank.AccountGUI;
import org.poopki.duckdns.user_db.UserInfoArray;
public class ResearchGUIEvent implements Listener,CommandExecutor {
AccountArray m_AccountArray;
UserInfoArray m_UserInfoArray;
NationArray m_NationArray;
public ResearchGUIEvent(UserInfoArray m_UIA, NationArray NA){
m_UserInfoArray = m_UIA;
m_NationArray = NA;
}
@Override
public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
Player player = (Player) sender;
if(sender instanceof Player){
switch(args[0]){
case "초기화":
m_NationArray.m_NationArray.get(m_UserInfoArray.getUserGroupUUID(player.getUniqueId(),"Nation")).InitResearchItem();
case "고대":
player.sendMessage("이벤트 발생");
player.openInventory(m_NationArray.getGroupTechInv(player, 0));
break;
case "중세":
player.sendMessage("이벤트 발생");
player.openInventory(m_NationArray.getGroupTechInv(player, 1));
break;
}
}
return false;
}
}