Closed DormantCat closed 11 months ago
Well, add the BungeeCord channel registration to OnEnable
the simplest function in my opinion.
@Override
public void onEnable() {
getServer().getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");
//Other code
}
You can use /npc playerCommand (npc name) server (server name)
The server
command is already hardcoded into the playerCommand
Please add commands for working with Proxy servers (BungeeCord / Velocity)
for example, /npc sendServer {NPC name} {Proxy-Server}
( Of course, it is possible to create similar functionality at the expense of other plugins, to do a kind of casting, but it would be much easier and more convenient to implement this function. )
This is a very simple solution that will allow you to move the player to another server.