Closed PixelPage-YT closed 2 years ago
Heyo,
I am pretty sure you need to register the outgoing channel on the Spigot server. Spigot servers don't know about channels by default.
As an example: the BungeeCord subchannel needs to be registered as well before using it: https://www.spigotmc.org/wiki/bukkit-bungee-plugin-messaging-channel/#the-bungeecord-plugin-channel
Obviously, you won't be receiving messages but you need to register the outgoing channel.
Additionally don't use the p.getDisplayName()
but make sure to get the actual username of the player p.getName()
.
Closing this as resolved. Please comment if this is not the case.
Hello, I'm using the API of RedirectPlus in my Spigot Server. (Not the bungeecord one). This is my Code:
But i get the error: Caused by: org.bukkit.plugin.messaging.ChannelNotRegisteredException: Attempted to send a plugin message through the unregistered channel `martenm:redirectplus'.
Do i have to register the channel, if so, how? or do i have to write a bungeecord plugin? Best regards, PixelPage