|
|
|
@ -24,10 +24,10 @@ public class GroupArray { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean DeleteGroup(UUID GroupUUID){ |
|
|
|
|
public boolean DeleteGroup(UUID GroupUUID, String GroupType){ |
|
|
|
|
if(m_GroupArray.containsKey(GroupUUID)){ |
|
|
|
|
for(UUID key: GetGroupMembersUUID(GroupUUID)){ |
|
|
|
|
m_UserInfoArray.setUserPartyUUID(key, new UUID(0,0)); |
|
|
|
|
m_UserInfoArray.setUserPartyUUID(GroupType,key,new UUID(0,0)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
m_GroupNameList.remove(GetGroupName(GroupUUID)); |
|
|
|
@ -40,12 +40,12 @@ public class GroupArray { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Integer SignUpGroup(UUID GroupUUID, UUID PlayerUUID){ |
|
|
|
|
public Integer SignUpGroup(String GroupType, UUID GroupUUID, UUID PlayerUUID){ |
|
|
|
|
if(m_GroupArray.containsKey(GroupUUID)){ |
|
|
|
|
if(isOffline(PlayerUUID)){ |
|
|
|
|
Group m_Group = m_GroupArray.get(GroupUUID); |
|
|
|
|
m_Group.SignUp(PlayerUUID); |
|
|
|
|
m_UserInfoArray.setUserPartyUUID(PlayerUUID,GroupUUID); |
|
|
|
|
m_UserInfoArray.setUserPartyUUID(GroupType,PlayerUUID,GroupUUID); |
|
|
|
|
return 1; // Success
|
|
|
|
|
}else{ |
|
|
|
|
return 2; // Offline Player
|
|
|
|
|