Trainer Card Balance Hider¶
Hides a player's money from other players. When you look at someone else's Pixelmon trainer card,
their balance shows 0. Your own card, inventory and balance are unchanged.
What it does¶
- Another player's trainer card shows
0instead of their real balance. The money icon stays. - Your own trainer card and inventory still show your real balance.
- Nothing about the real balance changes. Vault, XConomy, shops, trades, and economy commands all use the real number.
Server-side only. Clients install nothing.
How players use it¶
Players do not interact with this mod. They simply cannot see other players' money on trainer cards.
Staff guide¶
There are no commands or settings. To see a player's real balance, use the economy plugin
(for example /money <player> in XConomy).
Configuration¶
None.
Data and storage¶
None.
Troubleshooting¶
| Symptom | Cause | Fix |
|---|---|---|
| Other players' balances are still visible | Mod not loaded | Check for the boot line below |
A player's own inventory or NPC shop shows 0 |
Should never happen; the mod does not touch that packet | Report it. An old experimental build did this and was never deployed |
Boot line that shows it loaded:
Trainer Card Balance Hider loaded; cards requested by other players will show 0
Maintainer notes¶
- One mixin on Pixelmon's
RequestTrainerCardPacket.handlePacketredirectsBankAccount.getBalance()toBigDecimal.ZERO. That packet is sent only when viewing another player's card. UpdateClientPlayerDataPacketis left alone on purpose. It feeds the client's own currency cache, which the inventory and NPC shops use. An early build zeroed that cache and broke them.
Building¶
./gradlew build
Java 21. If the Pixelmon jar is not in the default local spot, add
-Ppixelmon_jar=/absolute/path/to/Pixelmon-<version>-universal.jar. Output:
build/libs/trainercardbalancehider-<version>.jar. Server mods/ only.
Full command, permission and config tables: Reference.