Fix bug with the delay-Tag

This commit should fix the bug with the delay-tag not only deleting the first number.
This commit is contained in:
TheLonelyWolf1 2021-11-15 20:46:13 +01:00 committed by GitHub
parent 1cb26d35f3
commit 638700c961
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {