-
Notifications
You must be signed in to change notification settings - Fork 2
Locking Mechanism
AshleyThew edited this page Jul 5, 2026
·
2 revisions
The locking mechanism prevents concurrent account access conflicts across single-server and multi-server deployments.
Bank uses lock records during account load/save cycles:
- Standard lock mode uses boolean lock state.
- Time lock mode uses timestamp-based unlock logic.
When a player switches servers quickly, lock checks reduce duplicate load/write risk and preserve account integrity.
Relevant keys:
Bank.Save.Lock.TimeBank.Save.Load.Delay
Admin lock operations:
/bank admin lock <player> <true/false>
bank.admin.lock
Lock state is persisted in storage lock tables/collections:
- standard lock records
- time-lock records
- Multi-server network with rapid server switching benefits from lock enforcement to avoid data races.
- Player appears stuck locked: inspect lock state and use admin lock command.
- Frequent lock warnings: review server switching flow and save latency.
- System Architecture and Lifecycle
- Commands and Permissions
- Account and Balance Model
- Transactions and Money Flow Rules
- Storage and Persistence
- Configuration System
- GUI and Inventory Interactions
- Integrations and Access Modes
- Error Handling and Edge Cases
- Admin Operations and Troubleshooting
- Backup, Recovery, and Migration
- Version Compatibility and Known Limitations
- command_baltop.yml
- commands.yml
- config.yml
- convert.yml
- default_items.yml
- hiscores.yml
- inventories.yml
- itemblacklist.yml
- items.yml
- language.yml
- mysql.yml
- permissions.yml
- sounds.yml
- upgrade.yml
- Discord Support Config:
- command_baltop.yml
- commands.yml
- config.yml
- convert.yml
- default_items.yml
- hiscores.yml
- inventories.yml
- itemblacklist.yml
- items.yml
- language.yml
- mongo.yml
- mysql.yml
- permissions.yml
- sounds.yml Config:
- command_baltop.yml
- commands.yml
- config.yml
- convert.yml
- default_items.yml
- hiscores.yml
- inventories.yml
- itemblacklist.yml
- items.yml
- language.yml
- mongo.yml
- mysql.yml
- permissions.yml
- sounds.yml Config:
- command_baltop.yml
- commands.yml
- config.yml
- convert.yml
- default_items.yml
- hiscores.yml
- inventories.yml
- itemblacklist.yml
- items.yml
- language.yml
- mongo.yml
- mysql.yml
- permissions.yml
- sounds.yml