diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/api/IUser.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/api/IUser.java | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/api/IUser.java b/Essentials/src/com/earth2me/essentials/api/IUser.java new file mode 100644 index 000000000..5d2f9d4b8 --- /dev/null +++ b/Essentials/src/com/earth2me/essentials/api/IUser.java @@ -0,0 +1,43 @@ +package com.earth2me.essentials.api; + +import com.earth2me.essentials.commands.IEssentialsCommand; +import org.bukkit.Location; +import org.bukkit.entity.Player; + + +public interface IUser extends Player, IReload +{ + long getLastTeleportTimestamp(); + + boolean isAuthorized(String node); + + boolean isAuthorized(IEssentialsCommand cmd); + + boolean isAuthorized(IEssentialsCommand cmd, String permissionPrefix); + + void setLastTeleportTimestamp(long time); + + Location getLastLocation(); + + Player getBase(); + + double getMoney(); + + void takeMoney(double value); + + void giveMoney(double value); + + String getGroup(); + + void setLastLocation(); + + Location getHome(String name) throws Exception; + + Location getHome(Location loc) throws Exception; + + boolean isHidden(); + + ITeleport getTeleport(); + + void setJail(String jail); +} |