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;
|
|
|
|
}
|
2015-06-09 20:54:00 +02:00
|
|
|
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-08-01 18:12:49 +02:00
|
|
|
// public abstract void setPermission(OfflinePlotPlayer player, String perm, boolean value);
|
|
|
|
// public abstract void getPermission(OfflinePlotPlayer player, String perm);
|
2015-01-10 11:20:20 +01:00
|
|
|
}
|