Prohibit olympiad double registration for same player.
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user