Creates a new MoneySystem object.
The ID of the player.
Adds money to a player.
The amount of money to add to the player, should be a number or a bigint, can be negative.
Returns true if the operation was successful. (Only returns false if config.moneySystem.useScoreboardBasedMoneySystem is true and the player's scoreboard identity is unable to be obtained)
Removes money from a player.
The amount of money to remove from the player, should be a number or a bigint, can be negative.
Returns true if the operation was successful. (Only returns false if config.moneySystem.useScoreboardBasedMoneySystem is true and the player's scoreboard identity is unable to be obtained)
Sets the amount of money a player has.
The amount of money to set the player to, should be a number or a bigint, can be negative.
Returns true if the operation was successful. (Only returns false if config.moneySystem.useScoreboardBasedMoneySystem is true and the player's scoreboard identity is unable to be obtained)
Transfers a players money from a scorboard to the current money system.
The scoreboard to transfer from.
Returns true if the operation was successful.
Static
getGets a MoneySystem object for a given player.
The player to get the MoneySystem object for.
The MoneySystem object for the given player.
Static
transferTransfers money from a scoreboard to the current money system, runs for all saved players with a saved scoreboard identity.
The scoreboard to transfer from.
Represents the money system.