OpenSourceSectors
️This is a plugin for Minecraft Server (Spigot API) which introduces a sector system that connects a single world across multiple servers.
The reason why I released this plugin is because I would like to make combining servers into one to spread out load between them easier. Finally, I am glad to provide the OpenSourceSectors, and everyone is welcome to adjust the code and help make it better by editting the code, adding new features, etc.
If you want to report any bug or request a feature please create a issue github.
Requirements
Bungeecord
Spigot servers 1.8 - 1.17.1 (as many as you want)
Private address space (for internal communication between servers) (eg. 127.0.0.1, 172.16.0.0, etc...)
Usage ✔️
Download the latest stable release from releases page, put the BungeeCord plugin into the BungeeCord Server and configure it, put the Spigot plugin into every Spigot server and configure the master server (look at BungeeCord configuration for more information) and launch all servers.
How it works ❓
Bungeecord becomes a "master server" which provides configuraction for each Spigot server, but you have to set a server-name for each Spigot server and the "master server" configuration (ip, port and password - optional). Once all servers are up and running, everything will be ready to use.
Spigot listeners
---------------------------------
Code (Text):
PlayerChangeSectorEvent
public class PlayerChangeSectorListener implements Listener {
@EventHandler
public void onSectorChange(PlayerChangeSectorEvent event) {
event.getPlayer(); // Return player that's trying to change sector
event.getNewSector(); // Return sector, that player is trying to reach
event.getOldSector(); // Return player's sector
event.setCancelled(true); // You can cancel this event. Then player can't change sector
}
}
---------------------------------
Sectors generator
A simple plugin created for people who want to generate an interactive map of sectors.
https://github.com/oski646/sectors-generator
TODO
Make an Easy-To-Use API to write compatible plugins with OpenSourceSectors.