#PluginMessagingChannel
1 messages · Page 1 of 1 (latest)
.
PluginMessagingChannel
your Send data would be unnecessary
but yeah basically like this
the other channel, which you will register on the other server, will have a listener, so you dont have to explicity say that you just sent data
since with this call player.sendPluginMessage(this, "BungeeCord", out.toByteArray); you already send it
yeah like the tutorial says, it basically is a listener which you have to register as a PMC
and the onPluginMessageReceived would in this case be like an EventHandler in normal listeners
yeah
but one should be more than enough
i dont quite get your question
you just had it?
never actually looked that up because PMC is the dumbest thing ever, but i believe it just sends the data to the proxy, this sends it to every server and looks up if they have a PMC with the given name registered
but since the PMC goes over the player, on the server has to be a player online, otherwise the server just wont be able to accept the call
think about it
receiving and sending
yeah because you dont have a channel registered
np 👍
all questions you asked could've been answered by just reading the thread https://www.spigotmc.org/wiki/bukkit-bungee-plugin-messaging-channel/
just like this one
you just answered your first question <#help-development message>
https://docs.oracle.com/javase/7/docs/api/java/io/DataInput.html?is-external=true could probably help you more here