Merge pull request 'Fix Declined Normal Schematic' (#300) from fix_order into master
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Reviewed-on: #300 Reviewed-by: YoyoNow <jwsteam@nidido.de> Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
Commit
60bda69fee
@ -301,7 +301,6 @@ public class CheckCommand extends BasicCommand {
|
||||
}
|
||||
|
||||
private void decline(String reason){
|
||||
schematic.setType(SchematicType.Normal.toDB());
|
||||
CheckedSchematic.create(schematic, SteamwarUser.get(checker.getUniqueId()).getId(), startTime, Timestamp.from(Instant.now()), reason);
|
||||
SteamwarUser user = SteamwarUser.get(schematic.getOwner());
|
||||
ProxiedPlayer player = ProxyServer.getInstance().getPlayer(user.getUuid());
|
||||
@ -311,6 +310,7 @@ public class CheckCommand extends BasicCommand {
|
||||
DiscordSchemAlert.sendDecline(schematic, user, reason);
|
||||
}
|
||||
Message.team("CHECK_DECLINED_TEAM", schematic.getName(), user.getUserName(), reason);
|
||||
schematic.setType(SchematicType.Normal.toDB());
|
||||
stop();
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren