Where the files are
#Everything of SimpleSMPCore lives in plugins/SimpleSMPCore/:
plugins/SimpleSMPCore/
config.yml main settings: language, branding, modules, storage, redis, discord, menus
setup-wizard.yml who runs the setup wizard and whether it is finished
external-texts.yml texts SimpleSMPCore writes into other plugins (spawn holograms)
lang/<language>.yml core messages
modules/default/<module>/ DefaultSMP modules
modules/better/<module>/ BetterSMP modules
modules/extra/<module>/ Extra modules
data/ database.db, backups/, duels/, protection/ and other data
docs/ commands.md, permissions.md, placeholders.md, modules.md, items.md, webhooks.md
Every module folder has the same layout: config.yml (settings and commands), lang/<language>.yml (its messages) and, when it has menus, a menus/ folder. Some modules have extra files, for example crates/ and keys/ for crates, ranks.yml for rankup, kits.yml and duels.yml for duels, pages.yml for the info screen. A module's files are only written when the module is enabled for the first time.
Applying changes
#| What you changed | How to apply it |
|---|---|
| A module's settings, texts or menus | /smpcore reload <module> |
| Everything | /smpcore reload (about one second) |
Command names and aliases (commands.<key>.name, aliases) | /smpcore reload (every module is switched off and on, so every command is registered again), or /smpcore module <id> disable and then enable for one module. /smpcore reload <module> may keep the old labels in a module that applies reloads live. A restart always works. |
language, timezone, admin-command, setup-wizard.command, storage (except storage.backups) and redis | restart |
You can also edit settings in game with /smpcore config (get, set, search, validate, undo). It shows whether a setting applies live, needs a module reload or a restart, keeps the comments in the file and takes a backup on every save. Every module card in /smpcore modules has a Settings button. The console prints Config check: N errors, N warnings shortly after start, /smpcore config validate runs the check on demand and /smpcore reload lists the config warnings; each names the file and key of the problem.
config.yml, section by section
#The main file plugins/SimpleSMPCore/config.yml has the sections below, each with its keys, defaults and the way a change is applied (see Applying changes): language, timezone and debug; branding; the BetterSMP master switch and the modules list; storage; Redis; Discord webhooks; placeholders and external links; number format, teleport and player data; commands; menus and docs.
config.yml: language, timezone and debug
#| Key | Default | Description |
|---|---|---|
language | en | Language of messages, menus and generated files. Built in: en and tr. See Languages. Restart after a change. |
per-player-locale | false | Show messages in each player's own client language when a matching lang file exists. Menus always use the server language. |
timezone | system | Time zone for daily resets, schedules and dates, for example Europe/London. Restart after a change. |
debug | false | Extra console output. Per module: /smpcore debug <module>. |
Branding and the server name
#| Key | Default | Description |
|---|---|---|
branding.server-name | EconomySMP | Used as %server_name% in every SimpleSMPCore text. |
branding.prefix | green gradient + » | Message prefix (%prefix%). MiniMessage, legacy &a and hex &#RRGGBB all work. |
branding.discord | discord.gg/example | %discord%, also used by /discord. |
branding.website | example.com | %website%, also used by /website. |
branding.store | store.example.com | %store%. |
branding.armor-crate | Armor Crate | Shown name of the armor set crate (%armor_crate%). |
The setup wizard fills these in. The name EconomySMP (also written in small caps, ᴇᴄᴏɴᴏᴍʏꜱᴍᴘ, and spaced out in the spawn hologram) also appears in files of other plugins. To rebrand fully, search and replace it in plugins/TAB/config.yml, animations.yml and groups.yml, plugins/FancyHolograms/holograms.yml (or better external-texts.yml for the managed holograms, see below), plugins/DeluxeMenus/gui_menus/*.yml, bukkit.yml and spigot.yml (shutdown, whitelist, server-full and restart messages), plugins/ViaVersion/config.yml (disconnect messages), plugins/PlaceholderAPI/config.yml (expansions.server.server_name) and server.properties (motd). The rules menu modules/default/rules/menus/main.yml does not contain the name, and plugins/LPC/config.yml only mentions it in a comment. Then run /tab reload, /fancyholograms reload, /dm reload, /papi reload and /smpcore reload.
SimpleSMPCore resolves its own %server_name%, %prefix%, %discord%, %website% and %store% before PlaceholderAPI, so the PlaceholderAPI Server expansion cannot replace them with "A Minecraft Server".
config.yml: BetterSMP master switch and modules
#| Key | Default | Description |
|---|---|---|
better.enabled | true | false stops every BetterSMP module and the server runs pure DefaultSMP. Your modules.<id> choices are kept. Twin modules (info, media, vip) switch to their simple built-in version. Also /smpcore better on, off or status. |
The modules list
#modules.<id>: true or false turns a single module on or off. New modules are added to this list automatically with their default state. See Turning modules on and off.
config.yml: storage (database)
#| Key | Default | Description |
|---|---|---|
storage.type | sqlite | sqlite (no setup), h2, mysql, mariadb or postgresql. Restart after a change. |
storage.table-prefix | smpcore_ | Put in front of every table name. Change it to share one database between servers safely. |
storage.file | data/database | SQLite or H2 file, relative to the plugin folder. |
storage.host, port, database, username, password | localhost, 3306, smpcore, root, empty | Connection for MySQL, MariaDB (3306) or PostgreSQL (5432). The password can also come from the environment variable SMPCORE_DB_PASSWORD. |
storage.pool.* | 8 / 2 / 10s / 30m | Connection pool size, idle connections, timeout and lifetime. |
storage.backups | on, 24h, keep 7 | Automatic SQLite/H2 backups into data/backups/. Applies with /smpcore reload, no restart. |
storage.profiles | empty | Extra named databases; a module uses one with storage.profile: <name> in its own config. |
Move existing data between databases with /smpcore storage migrate sqlite mysql (add --confirm to run it). Take a backup now with /smpcore storage backup.
Redis (networks only)
#redis.enabled: false by default. For several servers that share players, Redis syncs messages, staff chat, punishments, balances and more. Set host, port, password (or SMPCORE_REDIS_PASSWORD), a channel-prefix per network and optionally a server-id. Restart after a change. Leave it off on a single server.
Discord webhooks
#discord.webhooks holds named webhooks (staff, logs, public by default). Modules send their events to these names (each module has a webhooks section). discord.events turns core events on or off: server start and stop, module, storage and Redis errors, config warnings. Test a webhook with /smpcore webhook test <name>. The full event list is in docs/webhooks.md.
config.yml: placeholders and external links
#| Key | Description |
|---|---|
placeholders.aliases | Keep old PlaceholderAPI names working after a rename, for example old_key: new_key. |
placeholders.when-module-off | The value other plugins (TAB, LPC, holograms, DeluxeMenus) get from a placeholder while its module is off. default: '' = empty. Our own menus and the info screen drop such lines instead. |
External links
#external.links ties things of other plugins to a module: FancyNpcs NPCs, FancyHolograms holograms and old crate ids. While that module is off, the linked NPC or hologram is hidden, without a restart. For example the billford NPC and hologram belong to the billford module.
config.yml: number format, teleport and player data
#| Key | Default | Description |
|---|---|---|
formatting.decimal-separator / grouping-separator | . / , | Number format. |
formatting.suffixes | K M B T Q | Compact numbers (1.2K, 3.4M). |
formatting.currency-symbol, currency-format | $, %symbol%%amount% | Used when the economy module is off (the economy module has its own currency settings). |
teleport.delay | 5 | Default countdown in seconds for homes, warps, spawn, tpa, rtp; modules can override it. Bypass: simplesmpcore.bypass.teleport-delay. |
teleport.cancel-on-move / cancel-on-damage | true / true | Cancel the countdown. |
teleport.sounds.* | note block, enderman, villager | Countdown, complete and cancel sounds. |
player-data.autosave-interval | 5m | Changed player data is saved this often, and always on quit and shutdown. |
config.yml: commands
#| Key | Default | Description |
|---|---|---|
commands.conflict-policy | override | When another plugin has the same command: override = ours runs and the other stays reachable as <plugin>:<command>; yield = the other runs and ours stays reachable as simplesmpcore:<command>. |
commands.conflict-overrides | empty | Per-command exceptions, for example list: yield. |
commands.disabled | empty | Labels that are never registered, for example ["fly", "feed"]. |
commands.shortcuts | empty | Your own short commands. {args} = all arguments, {arg1} to {arg9}, {player}; prefix [console] to run as console. Example: money: "balance {args}". |
commands.help.page-size | 8 | Lines per page of every /<command> help (3 to 20). |
admin-command.name / aliases | smpcore / simplesmpcore, economysmp, simpleeconomysmp | The admin command. |
config.yml: menus and docs
#| Key | Default | Description |
|---|---|---|
menus.click-cooldown | 150 | Minimum milliseconds between two clicks. |
menus.theme | classic | Layout of paged list menus that do not choose one themselves: compact, wide, large, full or classic (the menu file's own slots). See Menu themes. |
menus.navigation | split | Page arrows: split = previous bottom left and next bottom right, right = both at the right end. |
menus.title.center | true | Center chest menu titles with spaces (no resource pack needed). |
menus.title.shadow | #000000FF | Title shadow colour; empty = none. Visible on 1.21.4+ clients. |
menus.title.apply-to-other-plugins | true | Apply centering and shadow to other plugins' menus too. |
menus.rate-limit.* | 8 per second, burst 12 | Click spam limit for every menu. |
menus.allow-inventory-drop | true | Players may drop items from their own inventory while one of our menus is open. |
Docs
#docs.generate: true writes the reference files in docs/ on every start and reload.
Turning modules on and off
#- In game:
/smpcore modulesopens a menu with every module, its state and a Settings button./smpcore module <id> enable,disableorinfodoes the same from chat or the console. - In the file:
config.yml→modules.<id>: false, then/smpcore reload(or restart). - Whole tier:
better.enabled: falseor/smpcore better off.
A disabled module unregisters its commands, hides its NPCs and holograms (through external.links) and its placeholders return the when-module-off value. Lines of menus, holograms and the info screen that belong to a disabled module disappear by themselves. A module whose required plugin is missing stays off with one log line.
Module settings: commands, cooldowns and worlds
#Every command of a module is defined in its config.yml:
commands:
balance:
enabled: true
name: balance
aliases: [bal, money]
permission: "simplesmpcore.economy.command.balance"
cooldown: 0
nameandaliasesrename the command; see Applying changes for how a rename is applied.hidden-aliaseswork but are not tab-completed. Sub-commands can be renamed undersubcommands.<sub>.- Permission nodes never change when you rename a command.
permissionis the node the command needs; an empty value means everyone, except for admin commands, which keep their node. cooldownis in seconds or a duration such as5sor1m; bypass:simplesmpcore.bypass.cooldown.- Most modules have
worlds.disabled: []: the module's player features are inactive in these worlds (bypass:simplesmpcore.bypass.disabled-worlds). - Many modules also have an
alertssection (for example large payments or sales) that is sent to staff and webhooks.
Languages
#The server language is config.yml → language. English (en) and Turkish (tr) are built into the core and into every module.
- Only the active language is written to disk:
lang/<language>.ymlfor the core andmodules/<tier>/<module>/lang/<language>.ymlfor each module. - Menus and content files (info pages, rules, crate texts) are created in the server language the first time they are generated. If you change the language later, existing menu files keep their texts; delete a menu file to have it generated again in the new language.
- A change of
languageneeds a restart (the language decides which files are generated). - With
per-player-locale: true, messages follow each player's client language when a file for that language exists. - The duel module has its own texts in 13 languages:
modules/extra/duels/messages/<language>.yml.
Adding your own translation
#- Copy
lang/en.ymltolang/<code>.yml, for examplelang/de.yml. - For each module you want translated, copy
modules/<tier>/<module>/lang/en.ymltolang/de.ymlin the same folder. - Translate the values. Keep the keys and the placeholders (
%player%,%amount%and so on) unchanged. - Set
language: deinconfig.ymland restart the server:languageis read at start.
Keys that are missing in your file fall back to the built-in English text, and new keys from updates are added to your file automatically. A key that is missing everywhere logs Missing message '<key>' in ....
Colours and text format
#- Every text accepts MiniMessage (
<gradient:#B4F7C3:#22C55E>,<#3BE07A>,<b>), legacy codes (&a,&l) and hex (&#RRGGBB). - The default style is green on grey: the prefix gradient
#B4F7C3to#22C55E, accents#3BE07A, text#EDEDEDand#9A9A9A, webhook embeds#3BE07A(discord.defaults.color). - Small caps (
ᴇᴄᴏɴᴏᴍʏꜱᴍᴘ) are normal Unicode letters and need no resource pack.
Menu themes
#Several modules come with ready layouts you can switch between:
| Module | Setting | Themes |
|---|---|---|
| Auction House, Orders | settings.menu-theme | full (default: 45 listings, controls on the bottom row), large (36 and a separator row), wide (27), compact (18), classic (the menu file's own slots) or inherit (follow menus.theme) |
| Duels | /simpleduels theme <name> | classic (default), modern (a backup is taken when you switch) |
A menu file you edited is never overwritten by an update; when the update has a new design, it is written next to your file as <name>.yml.new. A menu file you never edited is backed up and replaced by the new design. To get the new default for an edited file, rename or delete your file and run /smpcore reload <module>.
Holograms written by SimpleSMPCore
#Some spawn holograms (VIP info, rules, spawn welcome and others) are managed: their source text is plugins/SimpleSMPCore/external-texts.yml. SimpleSMPCore filters it by module state and writes it into FancyHolograms. Edit those holograms in external-texts.yml and run /smpcore reload; changes made with /hologram edit would be overwritten.
Found a mistake or something missing? Open a ticket on Discord.
Report an issue