Prohibit olympiad double registration for same player.

This commit is contained in:
MobiusDevelopment
2020-07-20 03:46:20 +00:00
parent 596dd975ae
commit b6a3a340d1
15 changed files with 75 additions and 0 deletions

View File

@@ -195,6 +195,11 @@ public class OlympiadManager
return false; return false;
} }
if (isRegistered(player, player, true) || isInCompetition(player, player, true))
{
return false;
}
StatSet statDat = Olympiad.getNobleStats(charId); StatSet statDat = Olympiad.getNobleStats(charId);
if (statDat == null) if (statDat == null)
{ {

View File

@@ -195,6 +195,11 @@ public class OlympiadManager
return false; return false;
} }
if (isRegistered(player, player, true) || isInCompetition(player, player, true))
{
return false;
}
StatSet statDat = Olympiad.getNobleStats(charId); StatSet statDat = Olympiad.getNobleStats(charId);
if (statDat == null) if (statDat == null)
{ {

View File

@@ -195,6 +195,11 @@ public class OlympiadManager
return false; return false;
} }
if (isRegistered(player, player, true) || isInCompetition(player, player, true))
{
return false;
}
StatSet statDat = Olympiad.getNobleStats(charId); StatSet statDat = Olympiad.getNobleStats(charId);
if (statDat == null) if (statDat == null)
{ {

View File

@@ -195,6 +195,11 @@ public class OlympiadManager
return false; return false;
} }
if (isRegistered(player, player, true) || isInCompetition(player, player, true))
{
return false;
}
StatSet statDat = Olympiad.getNobleStats(charId); StatSet statDat = Olympiad.getNobleStats(charId);
if (statDat == null) if (statDat == null)
{ {

View File

@@ -195,6 +195,11 @@ public class OlympiadManager
return false; return false;
} }
if (isRegistered(player, player, true) || isInCompetition(player, player, true))
{
return false;
}
StatSet statDat = Olympiad.getNobleStats(charId); StatSet statDat = Olympiad.getNobleStats(charId);
if (statDat == null) if (statDat == null)
{ {

View File

@@ -195,6 +195,11 @@ public class OlympiadManager
return false; return false;
} }
if (isRegistered(player, player, true) || isInCompetition(player, player, true))
{
return false;
}
StatSet statDat = Olympiad.getNobleStats(charId); StatSet statDat = Olympiad.getNobleStats(charId);
if (statDat == null) if (statDat == null)
{ {

View File

@@ -195,6 +195,11 @@ public class OlympiadManager
return false; return false;
} }
if (isRegistered(player, player, true) || isInCompetition(player, player, true))
{
return false;
}
StatSet statDat = Olympiad.getNobleStats(charId); StatSet statDat = Olympiad.getNobleStats(charId);
if (statDat == null) if (statDat == null)
{ {

View File

@@ -195,6 +195,11 @@ public class OlympiadManager
return false; return false;
} }
if (isRegistered(player, player, true) || isInCompetition(player, player, true))
{
return false;
}
StatSet statDat = Olympiad.getNobleStats(charId); StatSet statDat = Olympiad.getNobleStats(charId);
if (statDat == null) if (statDat == null)
{ {

View File

@@ -195,6 +195,11 @@ public class OlympiadManager
return false; return false;
} }
if (isRegistered(player, player, true) || isInCompetition(player, player, true))
{
return false;
}
StatSet statDat = Olympiad.getNobleStats(charId); StatSet statDat = Olympiad.getNobleStats(charId);
if (statDat == null) if (statDat == null)
{ {

View File

@@ -195,6 +195,11 @@ public class OlympiadManager
return false; return false;
} }
if (isRegistered(player, player, true) || isInCompetition(player, player, true))
{
return false;
}
StatSet statDat = Olympiad.getNobleStats(charId); StatSet statDat = Olympiad.getNobleStats(charId);
if (statDat == null) if (statDat == null)
{ {

View File

@@ -195,6 +195,11 @@ public class OlympiadManager
return false; return false;
} }
if (isRegistered(player, player, true) || isInCompetition(player, player, true))
{
return false;
}
StatSet statDat = Olympiad.getNobleStats(charId); StatSet statDat = Olympiad.getNobleStats(charId);
if (statDat == null) if (statDat == null)
{ {

View File

@@ -195,6 +195,11 @@ public class OlympiadManager
return false; return false;
} }
if (isRegistered(player, player, true) || isInCompetition(player, player, true))
{
return false;
}
StatSet statDat = Olympiad.getNobleStats(charId); StatSet statDat = Olympiad.getNobleStats(charId);
if (statDat == null) if (statDat == null)
{ {

View File

@@ -195,6 +195,11 @@ public class OlympiadManager
return false; return false;
} }
if (isRegistered(player, player, true) || isInCompetition(player, player, true))
{
return false;
}
StatSet statDat = Olympiad.getNobleStats(charId); StatSet statDat = Olympiad.getNobleStats(charId);
if (statDat == null) if (statDat == null)
{ {

View File

@@ -195,6 +195,11 @@ public class OlympiadManager
return false; return false;
} }
if (isRegistered(player, player, true) || isInCompetition(player, player, true))
{
return false;
}
StatSet statDat = Olympiad.getNobleStats(charId); StatSet statDat = Olympiad.getNobleStats(charId);
if (statDat == null) if (statDat == null)
{ {

View File

@@ -195,6 +195,11 @@ public class OlympiadManager
return false; return false;
} }
if (isRegistered(player, player, true) || isInCompetition(player, player, true))
{
return false;
}
StatSet statDat = Olympiad.getNobleStats(charId); StatSet statDat = Olympiad.getNobleStats(charId);
if (statDat == null) if (statDat == null)
{ {