SOF3 / Capital

An extensible economy API for PocketMine-MP.
Apache License 2.0
36 stars 6 forks source link

/checkmoney gets an unknown amount #49

Open Nerahikada opened 2 years ago

Nerahikada commented 2 years ago

If you run the /checkmoney command immediately after installing the plugin, an unknown value will be displayed.

SOF3 commented 2 years ago

yes, because the player doesn't have an account yet. you have to spend or get money the first time to actually initialize the account.

Nerahikada commented 2 years ago

Why is the account not initialized when a player joins?

SOF3 commented 2 years ago

Why is the account not initialized when a player joins?

because players may have multiple accounts. For example, if the world schema (#10) is used, the player accounts do not exist until they join the world.

perhaps it would be useful to try to trigger account initialization regularly to avoid confusion indeed.