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