Fix Punishment userid column
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2022-11-22 19:37:58 +01:00
Ursprung 4b97753167
Commit bb601245f9

Datei anzeigen

@ -47,8 +47,7 @@ public class Punishment {
@Field(keys = {Table.PRIMARY}, autoincrement = true) @Field(keys = {Table.PRIMARY}, autoincrement = true)
private final int punishmentId; private final int punishmentId;
@Field @Field
@Getter private final int userId;
private final int user;
@Field @Field
@Getter @Getter
private final int punisher; private final int punisher;
@ -95,6 +94,10 @@ public class Punishment {
} }
} }
public int getUserId() {
return userId;
}
public boolean isCurrent() { public boolean isCurrent() {
return isPerma() || getEndTime().after(new Date()); return isPerma() || getEndTime().after(new Date());
} }