fix actionbar

This commit is contained in:
ajgeiss0702
2020-05-13 16:07:58 -07:00
parent 109046bc0b
commit 732d7a84be
2 changed files with 15 additions and 4 deletions
@@ -16,11 +16,12 @@ public class BungeeUtils {
ByteArrayDataOutput out = ByteStreams.newDataOutput();
out.writeUTF( channel );
out.writeUTF(player.getName());
out.writeUTF( data1 );
// we send the data to the server
// using ServerInfo the packet is being queued if there are no players in the server
// using only the server to send data the packet will be lost if no players are in it
player.getServer().getInfo().sendData( "ajqueue:tospigot", out.toByteArray() );
player.getServer().sendData( "ajqueue:tospigot", out.toByteArray() );
}
}