-
Notifications
You must be signed in to change notification settings - Fork 10
CrossNetworkStorage Setup
Alot of people want to store playerdata network wide, so to make it easier i built a custom system that works better then SQL for this type of storing
So the main reason why SQL doesn't work for this type of plugin is due to the demanding performance of sql since the data in the plugin needs to be constantly updated, sql isn't designed for that type of system. CNS works by updating data directly to the proxy and than the server the player is attempting to join pulls that data only when it is updated, the whole system runs on the network and not on third party servers
CNS is pretty easy to setup, even easier if all servers including the proxy are hosted on the same machine
Firstly you will need 3(server1,server2,proxy) servers minimum, no point using if you only have 2(server1,proxy), after that drop the latest version of LevelPoints.jar into all server plugin folders, LPS currently supports spigot(& it's forks) & Bungee(& it's forks) soon to add velocity support after that restart all servers, it will generate all the plugin files and assaign a UUID to each server in config.yml (/adminlps reload will not reload config.yml), will look simillar to this
NetworkShare:
CrossNetworkStorage:
Enabled: false
Address: 127.0.0.1
Port: 3000
ServerID: 6e4ce740-1a64-4913-a279-30850b290f57 by default it will not be enabled just change it to true to enable the feature. now since every server is on the same machine it will just work, nothing more needed to be done from here
So your server is running on different machines, it's super simple but requires extra configuration. follow the steps in Same Machine and then follow these extra steps for different machines.
for them being on different machines you will need to change the Address to the public IP of the machine in your proxy server. by default the port is set to 3000 you will also need to open this port so each server can communicate to the proxy, you will only need to open this on the proxy servers machine.
if you're on a minecraft server host, most of them have a way to request additional ports for things such as (Dynmap, Voting), just request a new port on the proxy server and update the port in the network.yml, and make sure to update that port in every servers config.yml under Port
MAKE SURE TO RESTART ALL SERVERS AFTER THIS TO ENABLE THE FEATURE AND NOT CAUSE ERRORS, /adminlps reload WILL NOT WORK