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.
PHPMIT
VSharedData
One plugin for PocketMine-PMMP 5
It's both a plugin as well as a small management for your server network.
Feature (Plugin)
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.
Note (Plugin)
Note that this plugin cannot run plugins such as DEVirion and PocketMine-DevTools in the directory that you create to run its plugins.
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.