#Terrain Loading

1 messages · Page 1 of 1 (latest)

wise sigil
#

Do you know where I would find the code snippet to do that

tight plover
#

I'm just going to assume you mean server side since it's not possible on the client

wise sigil
#

Yes

#

Realistically I'd like to have it be done on startup but I'm just trying to test things out for now within my event handler

tight plover
#

What you'd need to do is create a Bungeecord plugin that can communicate between the servers

wise sigil
#

Yeah I thought of doing that through the plugin messaging but I couldn't find anything to trigger terrain loading

tight plover
#

Server A <- Your player is here
Server B <- You want them to go here
Bungeecord - Linking A and B

Server A would send a request over a plugin messaging channel (use your own channel). The Bungeecord would catch that message and redirect it to server B. Server B should then start loading the chunks and send a confirmation message when it's done which the Bungeecord would redirect back to Server A so it can teleport the player. Alternativly you can skip the message back to A and directly switch the server of the player from server B

#

Do make sure to unload them if the player doesn't connect or any other cases or you will start leaking memory