set user gangwar on 1 for testing
This commit is contained in:
@@ -264,7 +264,7 @@ namespace ReallifeGamemode.Server.Gangwar
|
||||
List<Player> ownersInGangwar = context.Users.Include(u => u.Faction).Where(u => onlinePlayers.Contains(u.Name) && u.Faction.Name == getOwner()).Select(u => u.Player).ToList();
|
||||
List<Player> attackersInGangwar = context.Users.Include(u => u.Faction).Where(u => onlinePlayers.Contains(u.Name) && u.Faction.Name == getAttacker()).Select(u => u.Player).ToList();
|
||||
|
||||
if (ownersInGangwar.Count < 5 && attackersInGangwar.Count < 5)
|
||||
if (ownersInGangwar.Count < 1 && attackersInGangwar.Count < 1)
|
||||
{
|
||||
List<Player> leaders = context.Users.Include(u => u.Faction).Where(u => onlinePlayers.Contains(u.Name) && u.Faction.Name == getAttacker() && u.FactionLeader).Select(u => u.Player).ToList();
|
||||
foreach(var l in leaders)
|
||||
|
||||
Reference in New Issue
Block a user