Ursprung
8caaa01204
Commit
aab7cbb363
@ -53,7 +53,7 @@ public class Punishment {
|
|||||||
|
|
||||||
public static boolean isPunished(SteamwarUser user, Punishment.PunishmentType type, Consumer<Punishment> callback) {
|
public static boolean isPunished(SteamwarUser user, Punishment.PunishmentType type, Consumer<Punishment> callback) {
|
||||||
Punishment punishment = Punishment.getPunishmentOfPlayer(user.getId(), type);
|
Punishment punishment = Punishment.getPunishmentOfPlayer(user.getId(), type);
|
||||||
if(punishment == null || punishment.isCurrent()) {
|
if(punishment == null || !punishment.isCurrent()) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
callback.accept(punishment);
|
callback.accept(punishment);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren