01 / JAVA API
¶ Setup & first balance →
Maven, Gradle, dependency declarations, service lookup, and Paper/Folia threading.
THE NEWER ECONOMY · API 1.2.6
Build Minecraft plugins that read balances, manage accounts, and move money through TNE’s persistent ledger.
Your plugin defines the gameplay. TNE supplies the account and payment services through its native Java API. No database credentials, TNECORE credentials, or HTTP integration are needed.
API 1.2.6 · Java 21 portable API · JDK 25 downloadable example
Checking migration and payout example · Time currency · Event delivery
01 / JAVA API
Maven, Gradle, dependency declarations, service lookup, and Paper/Folia threading.
02 / JAVA API
Named accounts, funded payments, atomic batches, receipts, and recovery.
03 / JAVA API
Escrow, delivery coordination, restart recovery, and scheduled payments.
04 / JAVA API
Account states, delegated spending budgets, partial refunds, and disputes.
05 / JAVA API
Invoices, conversion quotes, money notes, filtered queries, and native menus.
06 / JAVA API
Durable events, transaction policies, external providers, and test fixtures.
07 / JAVA API
Method signatures, currency scopes, failure codes, threading, and artifacts.
08 / JAVA API
Build and run the example, explore its operator commands, and test payment recovery.
| Type | Purpose |
|---|---|
TneApi | The service registered by the running TNE plugin. |
EconomyClient | Your integration’s access to accounts and money operations. |
Result<T> | A successful value or a typed reason the operation failed. |
CompletionStage | An asynchronous operation whose result arrives later. |
Declare the API as provided in Maven or compileOnly in Gradle. The normal TNE server plugin supplies the implementation; do not shade the API into your plugin.
BigDecimal values and configured currency IDs. Unsupported precision is rejected rather than silently rounded.CONFLICT is not enough to conclude that a particular payment succeeded or failed.result.isSuccess(). Read a value only after success.join() or blocking get(). Schedule player, inventory, entity, and world changes on their owning thread.View method signatures, failure codes, and lifecycle rules →
API repository → · Server, API JAR, sources, Javadoc, and SDK → · Report an API issue →
When reporting an issue, include the TNE and API versions, the operation, and a small reproducible example. The runtime remains beta pending live gameplay qualification.
Reviewed November 10, 2026 against the published TNE 1.2.6 SDK, public API sources and current runtime implementation. The standalone API repository remains at 1.0.64; use this release’s SDK for current contracts. Earlier material was adapted from the MIT-licensed API repository.