Dieser Commit ist enthalten in:
Ursprung
4b97753167
Commit
bb601245f9
@ -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());
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren