mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-24 14:16:44 +01:00
22 lines
862 B
Java
22 lines
862 B
Java
package com.intellectualcrafters.plot.util;
|
|
|
|
import com.intellectualcrafters.plot.object.ConsolePlayer;
|
|
import com.intellectualcrafters.plot.object.OfflinePlotPlayer;
|
|
import com.intellectualcrafters.plot.object.PlotPlayer;
|
|
|
|
public abstract class EconHandler {
|
|
public static EconHandler manager;
|
|
|
|
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);
|
|
public abstract void setPermission(String player, String perm, boolean value);
|
|
public abstract boolean hasPermission(String player, String perm);
|
|
}
|