2015-01-10 11:20:20 +01:00
|
|
|
package com.intellectualcrafters.plot.util;
|
|
|
|
|
2015-02-21 13:09:20 +01:00
|
|
|
import com.intellectualcrafters.plot.PlotSquared;
|
|
|
|
import com.intellectualcrafters.plot.object.PlotPlayer;
|
|
|
|
|
2015-01-10 11:20:20 +01:00
|
|
|
public class EconHandler {
|
2015-02-20 08:10:07 +01:00
|
|
|
// TODO economy shit
|
2015-02-21 13:09:20 +01:00
|
|
|
public static double getBalance(PlotPlayer player) {
|
|
|
|
return PlotSquared.economy.getBalance(player.getName());
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void withdrawPlayer(PlotPlayer player, double amount) {
|
2015-02-21 13:52:50 +01:00
|
|
|
PlotSquared.economy.withdrawPlayer(player.getName(), amount);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void depositPlayer(PlotPlayer player, double amount) {
|
|
|
|
PlotSquared.economy.depositPlayer(player.getName(), amount);
|
2015-02-21 13:09:20 +01:00
|
|
|
}
|
2015-01-10 11:20:20 +01:00
|
|
|
}
|