Several servers, one network
#Several servers can share one database, each with worlds of its own (for example skyblock-1, skyblock-2, survival). A player's keepers on every server count toward their limit and show in their placeholders and in /harvest admin list. A keeper always stays on the server it was placed on.
What a network needs:
database.engineset tomysqlormariadb, pointing at the same database on every server.- A different
database.table-prefixon every server, for exampleharvest_sb1_andharvest_sb2_. A server already running joins with the prefix it has; nothing is moved. network.enabled: trueand a uniquenetwork.server-nameon every server.- Optional: Redis, for instant updates.
| Key | Default | Description |
|---|---|---|
network.enabled | false | Join this server to the network. Needs MySQL or MariaDB. |
network.server-name | '' | This server's name in the network, shown in lists: letters, digits, ., _ and -. |
network.refresh-seconds | 30 | Without Redis, how often other servers' keepers are read again (10 to 3600). |
network.redis.uri | '' | Optional Redis: redis://user:password@host:6379/0, or rediss:// for TLS. Empty means no Redis. |
network.redis.channel | simpleharvest | The same on every server of one network. Two networks sharing one Redis each need their own channel. |
Example for the first skyblock server:
database:
engine: mariadb
table-prefix: harvest_sb1_
host: db.example.net
port: 3306
database: harvest
username: harvest
password: "change-me"
network:
enabled: true
server-name: skyblock-1
refresh-seconds: 30
redis:
uri: "redis://default:[email protected]:6379/0"
channel: simpleharvest
With Redis, changes show on every server at once, an admin can remove or hand over a keeper that is on another server, and a player hears about their keeper wherever they are. Without Redis, an admin action on a keeper of another server has to be run on that server.
Network commands
#/harvest admin networkshows the servers in the network./harvest admin network forget <server>removes a server that no longer exists, so its keepers stop counting. A server that ran in the last two minutes cannot be forgotten./harvest admin tp <keeper>on a keeper of another server tells you which server it is on; go there through your proxy.
Moving from uxmFarmer
#SimpleHarvest can import uxmFarmer's farmers as keepers with one command. It reads uxmFarmer's own database (SQLite or MySQL, as uxmFarmer's config.yml says), so keep uxmFarmer's folder.
- Stop the server.
- Remove uxmFarmer's jar from
plugins/. Keep its folder: that is what is read. - Start the server with SimpleHarvest installed.
- Run
/harvest admin import uxmfarmer. This is a dry run: it shows what it would bring over and changes nothing. - If the result looks right, run
/harvest admin import uxmfarmer confirm.
What comes over: every keeper with its stock, crew, crop levels and stored experience. Members whose uxmFarmer rank has no matching role are named in the console; either invite them by hand, or add roles with exactly those permissions to crew.roles, run /harvest reload and run the dry run again before confirming.
What does not come over: the keepers' settings (they start with this server's defaults), their looks, and uxmFarmer's log and statistics. Removing an imported keeper refunds nothing, because what it cost is not known.
After a successful import the plugin writes imported-from-uxmfarmer.yml. Running the import again imports nothing twice.
Found a mistake or something missing? Open a ticket on Discord.
Report an issue