Removes unused getBalance method

This commit is contained in:
Kristian Knarvik 2021-09-19 15:06:41 +02:00
parent 8835e69e3c
commit d5e6f1145c

View File

@ -88,20 +88,6 @@ public final class EconomyHandler {
EconomyHandler.destroyCost = destroyCost; EconomyHandler.destroyCost = destroyCost;
} }
/**
* Gets the balance (money) of the given player
*
* @param player <p>The player to get balance for</p>
* @return <p>The current balance of the player. Returns 0 if economy is disabled</p>
*/
public static double getBalance(Player player) {
if (economyEnabled) {
return economy.getBalance(player);
} else {
return 0;
}
}
/** /**
* Charges the player for an action, if required * Charges the player for an action, if required
* @param player <p>The player to take money from</p> * @param player <p>The player to take money from</p>