PlotSquared/src/main/java/com/intellectualcrafters/plot/util/EconHandler.java

21 lines
795 B
Java
Raw Normal View History

2015-01-10 11:20:20 +01:00
package com.intellectualcrafters.plot.util;
2015-07-27 20:06:20 +02:00
import com.intellectualcrafters.plot.object.ConsolePlayer;
2015-02-21 14:58:01 +01:00
import com.intellectualcrafters.plot.object.OfflinePlotPlayer;
2015-02-21 13:09:20 +01:00
import com.intellectualcrafters.plot.object.PlotPlayer;
2015-06-05 14:39:31 +02:00
public abstract class EconHandler {
public static EconHandler manager;
2015-07-27 20:06:20 +02:00
public double getMoney(PlotPlayer player) {
if (ConsolePlayer.isConsole(player)) {
return Double.MAX_VALUE;
}
return Double.NaN;
}
public abstract void withdrawMoney(PlotPlayer player, double amount);
public abstract void depositMoney(PlotPlayer player, double amount);
public abstract void depositMoney(OfflinePlotPlayer player, double amount);
2015-06-05 14:39:31 +02:00
public abstract void setPermission(PlotPlayer player, String perm, boolean value);
2015-01-10 11:20:20 +01:00
}