forked from Upstream/CommandPanels
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:
parent
1cb26d35f3
commit
638700c961
@ -105,7 +105,7 @@ public class SpecialTags implements Listener {
|
|||||||
e.commandTagUsed();
|
e.commandTagUsed();
|
||||||
//if player uses op= it will perform command as op
|
//if player uses op= it will perform command as op
|
||||||
final int delayTicks = Integer.parseInt(e.args[0]);
|
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() {
|
new BukkitRunnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
Loading…
Reference in New Issue
Block a user