Replaced hex values at ExMentorList with simple integers.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -55,7 +55,7 @@ public class ExMentorList extends ServerPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
_mentees = Collections.emptyList();
|
_mentees = Collections.emptyList();
|
||||||
_type = 0x00;
|
_type = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user