Fixing exceptions occuring in test and event arena #102
@ -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