Skip to content

Commit

Permalink
Once again attempt to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OllieMartin committed Oct 15, 2019
1 parent ec7c257 commit 82bd7f2
Showing 1 changed file with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,16 @@ public BungeeCommandListener() {
public void handlePayload(ChannelBuf data, RemoteConnection connection, Platform.Type side) {

Task.Builder taskBuilder = Task.builder();
taskBuilder.execute(
() -> {
String command = data.getUTF(0);
Sponge.getCommandManager().process(Sponge.getServer().getConsole(), command);
}
);
final String command = data.getUTF(0);

taskBuilder.execute(new Runnable() {
public void run() {
Sponge.getCommandManager().process(Sponge.getServer().getConsole(), command);
}
});

taskBuilder.delayTicks(1);

taskBuilder.submit(Sponge.getPluginManager().getPlugin("multichat").get().getInstance().get());

}
Expand Down

0 comments on commit 82bd7f2

Please sign in to comment.