#Plugin Messaging Channel
1 messages · Page 1 of 1 (latest)
As in the Tutorial shown you have to implement PluginMessageListener to a class
then you can @Override and create the Method above
its like an EventHandler but changes construction
if you want to send a message to a play who is at another server you cant use player.sendMessage
you need player.sendPluginMessage
do i need a reciver or something?
the reciver is in the thread i send you and works like i wrote above
okay thx i will try it
does not work
This should work easy;
You could achieve this by creating a Plugin that implements the PluginMessageListener and the EventHandler for PlayerChatEvent or smth like this;
In the EventHandler you use: player.sendPluginMessage(....)
and in the onEnable you register the channel you use - for example: "ChatForwarding"
Now you can use the PluginMessageListener to check for the specific channel "ChatForwarding" and read the message it has
can u show me an example ?