From 65128f67cd6dd82c69067b93106c836156ceda27 Mon Sep 17 00:00:00 2001 From: stijnb1234 Date: Sat, 26 Sep 2020 14:38:36 +0200 Subject: [PATCH] Small bug fixed --- .../lombok/nl/sbdeveloper/themeparkplus/commands/TPPCMD.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/lombok/nl/sbdeveloper/themeparkplus/commands/TPPCMD.java b/src/main/lombok/nl/sbdeveloper/themeparkplus/commands/TPPCMD.java index e40c6a9..4f3c04e 100644 --- a/src/main/lombok/nl/sbdeveloper/themeparkplus/commands/TPPCMD.java +++ b/src/main/lombok/nl/sbdeveloper/themeparkplus/commands/TPPCMD.java @@ -184,7 +184,7 @@ public class TPPCMD implements CommandExecutor { HashMap replacements = new HashMap<>(); replacements.put("%sec1%", args[5]); - replacements.put("%sec2%", args[6]); + replacements.put("%sec2%", args.length == 7 ? args[6] : "" + 1); sender.sendMessage(ConfigUtil.getMessage("RedstoneTimer.Started", replacements)); return true;