mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-03 23:17:48 +01:00
Fix Player#sendPluginMessage
This commit is contained in:
parent
939d06cfb5
commit
ab86400e80
@ -624,7 +624,13 @@ public class Player extends LivingEntity implements CommandSender {
|
|||||||
* @param message the message
|
* @param message the message
|
||||||
*/
|
*/
|
||||||
public void sendPluginMessage(String channel, String message) {
|
public void sendPluginMessage(String channel, String message) {
|
||||||
sendPluginMessage(channel, message.getBytes());
|
// Write the data
|
||||||
|
PacketWriter writer = new PacketWriter();
|
||||||
|
writer.writeSizedString(message);
|
||||||
|
// Retrieve the data
|
||||||
|
final byte[] data = writer.toByteArray();
|
||||||
|
|
||||||
|
sendPluginMessage(channel, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user