From 91f3b35ed9f94cd0605bac158a934c54b61ae6bd Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 30 Oct 2020 13:52:28 +0100 Subject: [PATCH] Implementing SpectateSystem column. --- SpigotCore_Main/src/de/steamwar/sql/Event.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SpigotCore_Main/src/de/steamwar/sql/Event.java b/SpigotCore_Main/src/de/steamwar/sql/Event.java index c55260b..3b1e2a4 100644 --- a/SpigotCore_Main/src/de/steamwar/sql/Event.java +++ b/SpigotCore_Main/src/de/steamwar/sql/Event.java @@ -34,6 +34,7 @@ public class Event { private final Timestamp end; private final int maximumTeamMembers; private final boolean publicSchemsOnly; + private final boolean spectateSystem; private Event(ResultSet rs) throws SQLException{ this.eventID = rs.getInt("EventID"); @@ -42,6 +43,7 @@ public class Event { this.end = rs.getTimestamp("End"); this.maximumTeamMembers = rs.getInt("MaximumTeamMembers"); this.publicSchemsOnly = rs.getBoolean("PublicSchemsOnly"); + this.spectateSystem = rs.getBoolean("SpectateSystem"); } public static Event get(int eventID){ @@ -75,4 +77,7 @@ public class Event { public boolean publicSchemsOnly() { return publicSchemsOnly; } + public boolean spectateSystem(){ + return spectateSystem; + } }