Removes unused getBalance method
This commit is contained in:
parent
8835e69e3c
commit
d5e6f1145c
@ -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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user