SteamWar/SpigotCore
Archiviert
13
0

Implementing SpectateSystem column.

Dieser Commit ist enthalten in:
Lixfel 2020-10-30 13:52:28 +01:00
Ursprung 2970e1d1fa
Commit 91f3b35ed9

Datei anzeigen

@ -34,6 +34,7 @@ public class Event {
private final Timestamp end; private final Timestamp end;
private final int maximumTeamMembers; private final int maximumTeamMembers;
private final boolean publicSchemsOnly; private final boolean publicSchemsOnly;
private final boolean spectateSystem;
private Event(ResultSet rs) throws SQLException{ private Event(ResultSet rs) throws SQLException{
this.eventID = rs.getInt("EventID"); this.eventID = rs.getInt("EventID");
@ -42,6 +43,7 @@ public class Event {
this.end = rs.getTimestamp("End"); this.end = rs.getTimestamp("End");
this.maximumTeamMembers = rs.getInt("MaximumTeamMembers"); this.maximumTeamMembers = rs.getInt("MaximumTeamMembers");
this.publicSchemsOnly = rs.getBoolean("PublicSchemsOnly"); this.publicSchemsOnly = rs.getBoolean("PublicSchemsOnly");
this.spectateSystem = rs.getBoolean("SpectateSystem");
} }
public static Event get(int eventID){ public static Event get(int eventID){
@ -75,4 +77,7 @@ public class Event {
public boolean publicSchemsOnly() { public boolean publicSchemsOnly() {
return publicSchemsOnly; return publicSchemsOnly;
} }
public boolean spectateSystem(){
return spectateSystem;
}
} }