Fixing exceptions occuring in test and event arena
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
11da798b4e
Commit
8353139d2c
@ -114,6 +114,12 @@ public class Fight {
|
||||
}
|
||||
|
||||
public static void calcAvailibleSchemTypes() {
|
||||
if(redTeam.getLeader() == null || redTeam.getLeader().getPlayer() == null ||
|
||||
blueTeam.getLeader() == null || blueTeam.getLeader().getPlayer() == null){
|
||||
onlyPublicSchems = false;
|
||||
return;
|
||||
}
|
||||
|
||||
onlyPublicSchems = (Schematic.getSchemsOfType(redTeam.getLeader().getPlayer().getUniqueId(), Config.SchematicType).isEmpty() ||
|
||||
Schematic.getSchemsOfType(blueTeam.getLeader().getPlayer().getUniqueId(), Config.SchematicType).isEmpty());
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren