use of com.github.games647.fastlogin.core.message.NamespaceKey in project ChangeSkin by games647.
the class ChangeSkinBukkit method sendPluginMessage.
public void sendPluginMessage(PluginMessageRecipient sender, ChannelMessage message) {
ByteArrayDataOutput out = ByteStreams.newDataOutput();
message.writeTo(out);
NamespaceKey channel = new NamespaceKey(getName(), message.getChannelName());
sender.sendPluginMessage(this, channel.getCombinedName(), out.toByteArray());
}
use of com.github.games647.fastlogin.core.message.NamespaceKey in project ChangeSkin by games647.
the class ChangeSkinBungee method sendPluginMessage.
public void sendPluginMessage(Server server, ChannelMessage message) {
if (server != null) {
ByteArrayDataOutput out = ByteStreams.newDataOutput();
message.writeTo(out);
NamespaceKey channel = new NamespaceKey(getName(), message.getChannelName());
server.sendData(channel.getCombinedName(), out.toByteArray());
}
}
use of com.github.games647.fastlogin.core.message.NamespaceKey in project FastLogin by games647.
the class FastLoginBungee method sendPluginMessage.
public void sendPluginMessage(Server server, ChannelMessage message) {
if (server != null) {
ByteArrayDataOutput dataOutput = ByteStreams.newDataOutput();
message.writeTo(dataOutput);
NamespaceKey channel = new NamespaceKey(getName(), message.getChannelName());
server.sendData(channel.getCombinedName(), dataOutput.toByteArray());
}
}
Aggregations