ArdenCore
Author: RajaAditya Website: rajaaditya.my.id Version: 1.0.0 API: Paper or Leaf 1.21.x (Java 21). Folia is not supported
Status: according to the project's own notes, all planned features are written and pass 353 unit tests, but the plugin had not yet been run on a live server. The remaining work is the real-server checklist in
Docs/12-testing-checklist.md. For a general server, EssentialsX is still the safer choice. ArdenCore makes sense when you only need what it covers and want full control of the code.
Why It Exists
It started from one bug: with the EssentialsX version used, /god could not be turned off, and a player stayed invulnerable after /ungod. ArdenCore is designed so that class of bug cannot happen:
god,fly,vanish,freeze, andspeedare owned by onePlayerStateManager. No other module may change them directly- God mode is only a flag checked by a listener.
Player#setInvulnerableis never used, so another plugin or a stale flag cannot leave a player invulnerable apply()is idempotent and runs again on join, respawn, world change, and gamemode change- An automated test makes sure no code outside the state manager sets player state
Features
Every module can be turned off in config.yml under modules.*. A disabled module registers no commands, listeners, or tasks, and /ardencore reload switches modules on the fly.
| Module | What it includes |
|---|---|
| Foundation | State manager, SQLite or MySQL storage with tiered migrations and a write-behind cache, config that merges new keys without removing yours, a central messages.yml (& and &#RRGGBB colors) |
| economy | Exact BigDecimal balances, a Vault provider, /balance, /pay (minimum, cooldown, tax), /baltop (cached, built asynchronously), /eco, and /sell, /worth, /setworth with prices in worth.yml |
| teleport | Homes (/sethome /home /delhome /homes, limit by ardencore.home.limit.<n>), warps (/setwarp /warp /delwarp /warps), /tpa /tpahere /tpaccept /tpdeny /tpaall /tpcancel /tpauto, /back, /tp, /tphere, safe-location checks, /top /tpall /tppos (relative ~ coordinates), /tptoggle /tpo |
| spawn | One global spawn with /spawn and /setspawn, teleport on first join and on respawn |
| moderation | /mute /tempmute /unmute /kick /ban /tempban /unban /jail /unjail /setjail /deljail /freeze, working on offline players from its own table, plus /banip (stores a keyed HMAC hash, never the raw IP), /mutelist, /kickall |
| extras | /playtime /seen /whois /list /ping /near /getpos /broadcast /me /ignore /mail, item tools (/hat /more /rename /lore /skull /condense /recipe /book /xp), crafting stations (/workbench /anvil /grindstone /stonecutter /loom /cartographytable /smithingtable), and /sudo /kill /suicide /burn /extinguish /smite /ptime /pweather |
| utility | /god /fly /speed /heal /feed /gamemode (with /gms /gmc /gma /gmsp), /vanish /invsee /enderchest /repair /clear /give /time /weather |
| messaging | /msg /reply /socialspy /msgtoggle /realname /nick. Nicks are set as the display name |
| chat | Optional, off by default. A chat format from chat.format with %vault_prefix% and PlaceholderAPI |
| join-message | Custom join and leave messages with {player}, %player%, and PlaceholderAPI |
| geoip | Country and city through MaxMind GeoLite2-City, with automatic download and update, a staff join notification, and /geoip |
| kits | Optional, off by default. /kit with a cooldown per kit |
| placeholders | A PlaceholderAPI expansion ardencore that only reads memory, including playtime and playtime_formatted |
| audit-log | One file per day in logs/audit/ written by a single async writer, and /ardencore audit [lines] |
| Public API | ArdenCoreAPI through the ServicesManager and the events BalanceChangeEvent, PlayerStateChangeEvent, and PunishmentEvent |
In total there are 109 commands, around a hundred ardencore.* permission nodes, and 11 configuration files.
Design Rules
- Disciplined async. Database, file, and network work never runs on the main thread, and Bukkit calls never run off it
- Delays and cooldowns apply to
/warponly. Homes, spawn,/back,/tp,/tphere, and accepted TPA requests teleport instantly - No raw IPs in the database, logs, audit, or placeholders. GeoIP stores only country and city
- Privacy. Private messages and
/mailnever reach the audit or logs./sudorecords only the command name, not its arguments - No MiniMessage. Every player-facing text is in
messages.yml - Public chat is not formatted by ArdenCore unless the
chatmodule is turned on. Mute only cancels chat at the earliest priority - Commands are registered in code, not in
plugin.yml. A vanilla command with the same name is replaced, and a command owned by another plugin is left alone (ArdenCore's version stays reachable as/ardencore:<name>)
Out of Scope
AFK, chat channels, AntiBuild, region protection, a Discord bridge, Bedrock GUIs and forms, multi-server sync, and per-world spawns.
Dependencies
| Plugin | Required | Purpose |
|---|---|---|
| Vault | No (softdepend) | Lets other plugins use ArdenCore's economy |
| PlaceholderAPI | No (softdepend) | The ardencore expansion and placeholders in messages |
| PremiumVanish / SuperVanish | No (softdepend) | Vanish integration |
There are no hard dependencies. HikariCP and MaxMind geoip2 are bundled. It is designed for backends behind a Velocity proxy with online-mode=false, with Bedrock players through Geyser and Floodgate.
Installation
- Build with
mvn package(JDK 21 and Maven), which producestarget/ArdenCore-<version>.jar - Place the jar into
plugins/and start the server. Every.ymlfile is generated inplugins/ArdenCore/ - Optional: install Vault and PlaceholderAPI, and fill in
geoip.ymlfor automatic GeoIP
The MaxMind .mmdb file is not included in the jar because of its license.
GeoIP Automatic Download
Fill in geoip.yml with your MaxMind account-id (digits only) and license-key (about 40 letters, digits, and underscores, not the account ID). MaxMind rejects the request with HTTP 401 if one character is wrong, and the log then says how many characters were read from each field, without showing the values.
File Structure
plugins/ArdenCore/
├── config.yml # Prefix, storage, cache, modules
├── messages.yml # Every player-facing text
├── economy.yml # Currency, starting balance, /pay, /baltop
├── worth.yml # Item prices for /sell and /worth
├── teleport.yml # Warp delay, homes, TPA
├── spawn.yml # Spawn behavior and location
├── geoip.yml # MaxMind settings
├── moderation.yml # Default reason, durations, blocked commands
├── utility.yml # State persistence, speed and heal limits
├── extras.yml # Extras settings
├── kits.yml # Read only when modules.kits is true
├── data/
│ ├── ardencore.db
│ ├── GeoLite2-City.mmdb
│ └── .ip-secret # Generated for /banip
└── logs/audit/ # One file per day
Configuration
config.yml
prefix: "CDA7&lCORE &8» &7"
storage:
type: sqlite # sqlite or mysql
sqlite-file: "data/ardencore.db"
mysql:
host: "localhost"
port: 3306
database: "ardencore"
username: "root"
password: ""
pool-size: 8
cache:
save-interval-seconds: 300
modules:
economy: true
teleport: true
spawn: true
geoip: true
moderation: true
utility: true
messaging: true
extras: true
kits: false
placeholders: true
chat: false # leave off if another plugin formats chat
join-message: true
audit-log: true
vault:
register-economy: true
priority: HIGHEST
economy.yml (excerpt)
currency:
singular: "Money"
plural: "Money"
decimals: 0
format: "{amount} {currency}"
compact: false # true = 1.5K, 2M
starting-balance: 0
max-balance: 1000000000
pay:
minimum: 1
cooldown-seconds: 3
tax-percent: 0
allow-offline: true
baltop:
per-page: 10
cache-seconds: 60
teleport.yml
# Delay and cooldown apply to /warp only
warp:
delay-seconds: 3
cooldown-seconds: 5
cancel-on-move: true
cancel-on-damage: true
permission-per-warp: false # true = needs ardencore.warp.<name>
homes:
default-limit: 3 # overridden by ardencore.home.limit.<n>
tpa:
timeout-seconds: 60
safe-location-check: true
back:
on-teleport: true
on-death: true
moderation.yml (excerpt)
default-reason: "No reason provided"
tempban:
max-duration: "30d"
mute:
blocked-commands: ["msg", "tell", "w", "reply", "r", "me", "mail"]
jail:
release-to-spawn: true
blocked-commands: ["home", "spawn", "tpa", "tpahere", "warp", "back"]
freeze:
allow-chat: true
utility.yml (excerpt)
state:
persist-god: true
persist-fly: true
persist-vanish: true
restore-on-join: true
speed:
max-walk: 5
max-fly: 5
Permissions
Most player commands (balance, pay, homes, warps, TPA, /back, /spawn, messaging, /kit, /playtime, and similar) default to true. Staff commands default to op. ardencore.* grants every static node.
| Permission | Default | Description |
|---|---|---|
ardencore.* | op | Every static ArdenCore permission |
ardencore.balance, pay, baltop | true | Economy basics |
ardencore.home, home.set, home.delete | true | Homes |
ardencore.home.limit.<n> | — | Raises a player's home limit to n |
ardencore.warp, ardencore.tpa, ardencore.back, ardencore.spawn | true | Everyday teleports |
ardencore.warp.<name> | — | Access to one warp when permission-per-warp is on |
ardencore.kit.<name> | — | Access to one kit |
ardencore.eco, balance.others | op | Manage balances |
ardencore.mute, tempmute, ban, tempban, jail, freeze, and kick | op | Moderation |
ardencore.god, fly, speed, heal, feed, gamemode, vanish | op | Player state |
ardencore.geoip, ardencore.geoip.notify | op | GeoIP lookups and join notices |
ardencore.audit, ardencore.admin | op | Audit log and administration |
.others variants of a permission let a player use the command on someone else. The complete list is in Docs/09-permissions.md.
PlaceholderAPI
Requires PlaceholderAPI. Identifier: ardencore. Placeholders only read from memory, so they never hit the database. Examples include playtime and playtime_formatted.
Commands
Use /ardencore reload to reload the configuration and /ardencore audit [lines] to read the audit log. All other commands are listed by module in the Features table above.
For Developers
ArdenCoreAPIis available through the Bukkit ServicesManager- Events:
BalanceChangeEvent,PlayerStateChangeEvent,PunishmentEvent
License
Developed by RajaAditya — rajaaditya.my.id