Skip to content

Workaround for a Sponge bug

Sven Rahn edited this page Jun 27, 2018 · 2 revisions

There's a Sponge bug which breaks the core parts of CommandUtils:

https://github.com/SpongePowered/SpongeCommon/issues/1922

I expect it to be resolved after 1.13 is out, because of the newly introduced functions.

Until then, CommandUtils essentially delays every command for 0 ticks. This may not make a difference for you directly but it solves the problem.

But here's the thing: When delaying every command in a list of commands (like server startup command or alias command list) with the same 0 tick delay, they get out of order and are executed in a seemingly random order. To workaround this, CommandUtils delays every command in a list depending on its position. So the first command is delayed by 0 ticks, the second by 1 tick, the third 2 ticks and so on.

This is just to document the behavior so you don't get unexpected results.

Clone this wiki locally