Configuration
Almost every number in TradeSMP lives in config.yml, inside the plugins/TradeSMP/ folder. Change a value, save, and run /tradesmp reload to apply it. No restart needed, except for storage.
Storage is the one exception
Changing
storage.type(SQLite to MySQL or back) needs a full server restart. A reload will not rebuild the database connection.
Related pages: Messages & Language, Permissions, Storage.
About config-version
The file has a config-version at the top. Leave it alone. TradeSMP uses it to merge in new options automatically when you update, so your old settings and comments are kept.
Leveling
Controls what moves a player’s level.
| Setting | Default | What it does |
|---|---|---|
only-pvp-deaths-lower-level | false | false means any death lowers a level. true means only a death caused by another player lowers it. Raising a level always needs a player killer either way. |
See Trade Levels for how this plays out.
Bread
The +1 bread-as-golden-apple perk. See Buffs.
| Setting | Default | What it does |
|---|---|---|
hunger-threshold | 19 | Bread only gives the bonus effects when hunger is at this number or below. 20 is a full bar. |
absorption-amplifier | 1 | Absorption strength. 0 is level I, 1 is level II, and so on. |
absorption-duration-seconds | 120 | How long the Absorption lasts. |
regeneration-amplifier | 1 | Regeneration strength, same scale. |
regeneration-duration-seconds | 5 | How long the Regeneration lasts. |
Emerald lightning
The +2 lightning perk. See Buffs.
| Setting | Default | What it does |
|---|---|---|
hits-required | 10 | Hits in a row on the same player before lightning strikes. |
hit-timeout-seconds | 10 | If this many seconds pass between two hits, the streak resets. |
damage-hearts | 4.0 | Lightning damage in hearts. 4.0 hearts is 8 HP. Armor still applies. |
Totem resistance
The +3 totem perk. See Buffs.
| Setting | Default | What it does |
|---|---|---|
duration-seconds | 30 | How long Resistance I lasts after a totem pops, for +3 players only. |
Villager prices
The negative-level price markup. See Debuffs.
| Setting | Default | What it does |
|---|---|---|
level-minus-1-multiplier | 1.25 | Price multiplier at -1. 1.25 means 25% more. |
level-minus-2-multiplier | 1.5 | Price multiplier at -2. |
level-minus-3-multiplier | 2.0 | Price multiplier at -3. 2.0 means double. |
Levels 0 and up always pay normal price
Only negative levels change trade prices.
Golden apple debuff
The side effects on golden apples at negative levels. See Debuffs.
| Setting | Default | What it does |
|---|---|---|
level-minus-1-slowness-seconds | 10 | Slowness after a golden apple at -1. |
level-minus-2-slowness-seconds | 20 | Slowness at -2. |
level-minus-3-slowness-seconds | 10 | Slowness at -3. |
level-minus-3-weakness-seconds | 10 | Weakness at -3, on top of the Slowness. |
Village locator
The +3 locator command. See Village Locator.
| Setting | Default | What it does |
|---|---|---|
cooldown-minutes | 10 | Wait time between uses, per player. Survives relogs. |
search-radius | 6400 | How far to search, in blocks. Bigger finds farther villages but takes longer. |
find-unexplored | true | Prefer villages nobody has visited yet, like vanilla. |
Ban on repeat death
The -3 ban. See The -3 Ban.
| Setting | Default | What it does |
|---|---|---|
enabled | true | Master switch. false means dying at -3 does nothing extra. |
permanent | true | true bans forever. false bans for the hours below. |
temporary-duration-hours | 0 | Length of a temporary ban. Only used when permanent is false. |
The whole file
Full config.yml (click to expand)
config-version: 1 language: en storage: type: sqlite mysql: host: localhost port: 3306 database: tradesmp username: root password: "" leveling: only-pvp-deaths-lower-level: false effects: bread-golden-apple: hunger-threshold: 19 absorption-amplifier: 1 absorption-duration-seconds: 120 regeneration-amplifier: 1 regeneration-duration-seconds: 5 emerald-lightning: hits-required: 10 hit-timeout-seconds: 10 damage-hearts: 4.0 totem-resistance: duration-seconds: 30 villager-price: level-minus-1-multiplier: 1.25 level-minus-2-multiplier: 1.5 level-minus-3-multiplier: 2.0 golden-apple-debuff: level-minus-1-slowness-seconds: 10 level-minus-2-slowness-seconds: 20 level-minus-3-slowness-seconds: 10 level-minus-3-weakness-seconds: 10 locate-village: cooldown-minutes: 10 search-radius: 6400 find-unexplored: true ban-on-repeat-death: enabled: true permanent: true temporary-duration-hours: 0
Nav