|
|
|
@ -7,7 +7,7 @@ import org.poopki.duckdns.user_db.UserInfoArray; |
|
|
|
|
|
|
|
|
|
import java.util.*; |
|
|
|
|
|
|
|
|
|
public class FarmArray { |
|
|
|
|
public class FarmArray extends GroupArray{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Map<UUID, Farm> m_FarmArray; |
|
|
|
@ -18,6 +18,7 @@ public class FarmArray { |
|
|
|
|
int MAX_GROUP_NUM = 10; |
|
|
|
|
Plugin plugin; |
|
|
|
|
public FarmArray(UserInfoArray m_UIA, int num, Plugin plugin){ |
|
|
|
|
super(m_UIA,num,plugin); |
|
|
|
|
m_UserInfoArray = m_UIA; |
|
|
|
|
m_FarmArray = new HashMap<UUID, Farm>(); |
|
|
|
|
m_GroupNameList = new HashMap<String, UUID>(); |
|
|
|
@ -25,6 +26,7 @@ public class FarmArray { |
|
|
|
|
this.plugin = plugin; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public boolean CreateGroup(UUID GroupUUID, String Name, UUID PlayerUUID){ |
|
|
|
|
if(m_GroupNameList.containsKey(Name)){ |
|
|
|
|
return false; // Conflict
|
|
|
|
|