Replaced hex values at ExMentorList with simple integers.

This commit is contained in:
MobiusDevelopment
2023-01-13 04:02:00 +00:00
parent 08c99f885a
commit 3d32489fba
26 changed files with 85 additions and 85 deletions

View File

@@ -39,12 +39,12 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
@@ -55,7 +55,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,12 +39,12 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
@@ -55,7 +55,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,12 +39,12 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
@@ -55,7 +55,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,12 +39,12 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
@@ -55,7 +55,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,12 +39,12 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
@@ -55,7 +55,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,12 +39,12 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
@@ -55,7 +55,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,12 +39,12 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
@@ -55,7 +55,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,12 +39,12 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
@@ -55,7 +55,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,12 +39,12 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
@@ -55,7 +55,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,12 +39,12 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
@@ -55,7 +55,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,12 +39,12 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
@@ -55,7 +55,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -55,7 +55,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,23 +39,23 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x01; _type = 1;
} }
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,23 +39,23 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x01; _type = 1;
} }
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,23 +39,23 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x01; _type = 1;
} }
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,23 +39,23 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x01; _type = 1;
} }
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,23 +39,23 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x01; _type = 1;
} }
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,23 +39,23 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x01; _type = 1;
} }
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,23 +39,23 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x01; _type = 1;
} }
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,23 +39,23 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x01; _type = 1;
} }
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -38,12 +38,12 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
// else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor // else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
@@ -54,7 +54,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -39,23 +39,23 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x01; _type = 1;
} }
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -38,12 +38,12 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
// else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor // else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
@@ -54,7 +54,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -38,12 +38,12 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
// else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor // else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
@@ -54,7 +54,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -38,12 +38,12 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
// else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor // else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
@@ -54,7 +54,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }

View File

@@ -38,12 +38,12 @@ public class ExMentorList extends ServerPacket
{ {
if (player.isMentor()) if (player.isMentor())
{ {
_type = 0x01; _type = 1;
_mentees = MentorManager.getInstance().getMentees(player.getObjectId()); _mentees = MentorManager.getInstance().getMentees(player.getObjectId());
} }
else if (player.isMentee()) else if (player.isMentee())
{ {
_type = 0x02; _type = 2;
_mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId())); _mentees = Arrays.asList(MentorManager.getInstance().getMentor(player.getObjectId()));
} }
// else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor // else if (player.isInCategory(CategoryType.SIXTH_CLASS_GROUP)) // Not a mentor, Not a mentee, so can be a mentor
@@ -54,7 +54,7 @@ public class ExMentorList extends ServerPacket
else else
{ {
_mentees = Collections.emptyList(); _mentees = Collections.emptyList();
_type = 0x00; _type = 0;
} }
} }