From bb601245f94e13e49021994fe61c6ef02f3beaad Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 22 Nov 2022 19:37:58 +0100 Subject: [PATCH] Fix Punishment userid column --- src/de/steamwar/sql/Punishment.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/sql/Punishment.java b/src/de/steamwar/sql/Punishment.java index 22f54ce..086f445 100644 --- a/src/de/steamwar/sql/Punishment.java +++ b/src/de/steamwar/sql/Punishment.java @@ -47,8 +47,7 @@ public class Punishment { @Field(keys = {Table.PRIMARY}, autoincrement = true) private final int punishmentId; @Field - @Getter - private final int user; + private final int userId; @Field @Getter private final int punisher; @@ -95,6 +94,10 @@ public class Punishment { } } + public int getUserId() { + return userId; + } + public boolean isCurrent() { return isPerma() || getEndTime().after(new Date()); }