Archiviert
1
0

Hotfix PunishmentCommand

Dieser Commit ist enthalten in:
yoyosource 2022-11-01 22:54:51 +01:00
Ursprung 24bfb12941
Commit 24a3885e2f

Datei anzeigen

@ -112,6 +112,7 @@ public class PunishmentCommand {
String group = matchResult.group(i);
int amount = Integer.parseInt(group.substring(0, group.length() - 1));
char unit = Character.toLowerCase(group.charAt(group.length() - 1));
System.out.println("Amount: " + amount + " Unit: " + unit);
switch (unit) {
case 'h':
instant = instant.plus(amount, ChronoUnit.HOURS);