DUXPLIMA Documentation

Upgrading to 4.0

What to do before and after moving a 3.x server to uxmFarmer 4.0.

4.0 moves every sale, withdrawal and upgrade into the database, under a lock on the farmer. The configuration carries over: new keys are added with their defaults on the first start, and the database schema is updated by itself.

Before you start

  1. Check the server: Paper 1.21.11 or newer, on Java 21.
  2. Back up plugins/uxmFarmer/ and, on MySQL, the database. The first start merges duplicate product and statistics rows and adds new columns; the backup is your way back to 3.x.
  3. On a network, stop every server and upgrade them all together. 4.0 renamed its Redis channels, so a 3.x server and a 4.0 server do not hear each other and overwrite each other's farmers.

What changes on the first start

Area3.x4.0
Farmer logslog-cleaner kept 50 and then dropped 25farmer-logs keeps the last 100, none older than 30 days. Older logs are deleted on the first start
Log filesEvery farmer log was also written to the log fileOnly with write-farmer-logs-to-file: true. Files rotate daily and are kept 14 days
SavingA full save every five minutesCollected products are written every flush-interval-seconds; money and items move in the database at once
Products removed from collected-materials.ymlTheir stock was deleted on reloadTheir stock is kept, and the console names them

The old log-cleaner block is no longer read. Set the new limits in farmer-logs before the first start if 100 logs and 30 days are too few for you.

What players and staff notice

ChangeWhere it is documented
Bred, egg and dispenser mobs, and built golems, are never auto-killed. Babies give no loot or XP. Loot ignores LootingAuto Kill
Farmer eggs no longer stack: each one is its own itemCommands
only-owners-can-upgrade also covers Upgrade AllStorage and Levels
Only the owner can transfer a farmerMembers and Ranks
Switching modules, collection and products takes ACCESS_MANAGE_MENU; conversions take SELLMembers and Ranks
/uxmfarmer teleport takes uxmfarmer.command.adminteleportPermissions
Tax and upgrade discounts stop at 100%Permissions
A farmer that cost nothing refunds no farmer pricegeneral-settings.yml

Related: Installation, Database and multi-server, Logs