mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-24 22:26:45 +01:00
21 lines
795 B
Java
21 lines
795 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(PlotPlayer player, String perm, boolean value);
|
|
}
|