You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Star7 (7)You must be signed in to star a repository
About
Help your server network reduce memory consumption for the base that hosts them. Save inventory player data for a network of servers that require shared player data. Help your server network to share a worlds folder, plugins and inventory player.
Please create any folder with the name according to your preference and reset the settings in the data-folder of this plugin.
Methods (Plugin)
You can load the world on another server, but only one server can load it.
You can logically handle them in a necessary way.
For example, I have 1 server as below:
# Server Skyblock A# Let's say I need to load a world for player A and teleport them to.if (VSharedData::loadWorld('IslandPlayerA')) {
//TODO: Your Logic
}
# This is when they leave the server or leave their world.if (VSharedData::isWorldLoaded('IslandPlayerA')) {
VSharedData::unloadWorld('IslandPlayerA'); //Stop loading the world to return it to another server that can use it if needed.
}
With this, you can handle a server with a large network of managing worlds easily.
You want to manage a plugin data folder of that plugin ?
# Let's do the same as if you used the saveDefaultConfig() method in the PocketMine APIprotectedfunctiononEnable(): void {
SharedData::saveDefaultConfigPlugin($this);
}
# You want getConfig()publicfunctiongetConfigPlugin(): ?Config {
returnSharedData::getConfigPlugin($this);
}
The exception (This is a non-plugin item)
When you go to the folder manager I have provided in this plugin directory. It will help you manage which server is running and running it.
You can setup it in 2 .bat files that I left inside.
Help your server network reduce memory consumption for the base that hosts them. Save inventory player data for a network of servers that require shared player data. Help your server network to share a worlds folder, plugins and inventory player.