From 638700c961052f3350588afd57f57b90c3fcb0a1 Mon Sep 17 00:00:00 2001 From: TheLonelyWolf1 <42873246+TheLonelyWolf1@users.noreply.github.com> Date: Mon, 15 Nov 2021 20:46:13 +0100 Subject: [PATCH] Fix bug with the delay-Tag This commit should fix the bug with the delay-tag not only deleting the first number. --- .../commandpanels/commandtags/tags/other/SpecialTags.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/me/rockyhawk/commandpanels/commandtags/tags/other/SpecialTags.java b/src/me/rockyhawk/commandpanels/commandtags/tags/other/SpecialTags.java index 499a6c1..4473b4b 100644 --- a/src/me/rockyhawk/commandpanels/commandtags/tags/other/SpecialTags.java +++ b/src/me/rockyhawk/commandpanels/commandtags/tags/other/SpecialTags.java @@ -105,7 +105,7 @@ public class SpecialTags implements Listener { e.commandTagUsed(); //if player uses op= it will perform command as op final int delayTicks = Integer.parseInt(e.args[0]); - String finalCommand = String.join(" ",e.args).replace(e.args[0],"").trim(); + String finalCommand = String.join(" ",e.args).replaceFirst(e.args[0],"").trim(); new BukkitRunnable() { @Override public void run() {