Skip to content

Commit

Permalink
fix: add missing fields to default data after registration
Browse files Browse the repository at this point in the history
Fixes #110
  • Loading branch information
cooldogedev committed Oct 17, 2023
1 parent 19e667c commit 8c36c46
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cooldogedev/BedrockEconomy/EventListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ function () use ($networkSession, $playerInfo): Generator {
yield from BedrockEconomyAPI::ASYNC()->insert($playerInfo->getXuid(), $playerInfo->getUsername(), $this->plugin->getCurrency()->defaultAmount, $this->plugin->getCurrency()->defaultDecimals);

$data = [
"xuid" => $playerInfo->getXuid(),
"username" => $playerInfo->getUsername(),
"amount" => $this->plugin->getCurrency()->defaultAmount,
"decimals" => $this->plugin->getCurrency()->defaultDecimals,
"position" => 0,
Expand Down

0 comments on commit 8c36c46

Please sign in to comment.