SteamWar/BungeeCore
Archiviert
13
2

Hotfix PunishmentCommand
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

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); String group = matchResult.group(i);
int amount = Integer.parseInt(group.substring(0, group.length() - 1)); int amount = Integer.parseInt(group.substring(0, group.length() - 1));
char unit = Character.toLowerCase(group.charAt(group.length() - 1)); char unit = Character.toLowerCase(group.charAt(group.length() - 1));
System.out.println("Amount: " + amount + " Unit: " + unit);
switch (unit) { switch (unit) {
case 'h': case 'h':
instant = instant.plus(amount, ChronoUnit.HOURS); instant = instant.plus(amount, ChronoUnit.HOURS);