TF-EssentialsX/Essentials/src/com/earth2me/essentials/IUser.java

91 lines
1.9 KiB
Java
Raw Normal View History

package com.earth2me.essentials;
import com.earth2me.essentials.commands.IEssentialsCommand;
2013-05-05 03:13:17 +00:00
import java.math.BigDecimal;
import java.util.Map;
import java.util.Set;
import org.bukkit.Location;
import org.bukkit.entity.Player;
public interface IUser extends Player
{
long getLastTeleportTimestamp();
boolean isAuthorized(String node);
boolean isAuthorized(IEssentialsCommand cmd);
boolean isAuthorized(IEssentialsCommand cmd, String permissionPrefix);
void setLastTeleportTimestamp(long time);
Location getLastLocation();
Player getBase();
2013-05-05 03:13:17 +00:00
BigDecimal getMoney();
2013-05-05 03:13:17 +00:00
void takeMoney(BigDecimal value);
2013-05-05 03:13:17 +00:00
void giveMoney(BigDecimal value);
2013-05-05 03:13:17 +00:00
boolean canAfford(BigDecimal value);
2011-06-13 13:05:31 +00:00
String getGroup();
void setLastLocation();
Location getHome(String name) throws Exception;
Location getHome(Location loc) throws Exception;
2013-06-02 16:45:56 +00:00
/**
* 'Hidden' Represents when a player is hidden from others.
* This status includes when the player is hidden via other supported plugins.
* Use isVanished() if you want to check if a user is vanished by Essentials.
*
* @return If the user is hidden or not
* @see isVanished
*/
boolean isHidden();
2013-06-02 16:45:56 +00:00
void setHidden(boolean vanish);
/**
* 'Vanished' Represents when a player is hidden from others by Essentials.
* This status does NOT include when the player is hidden via other plugins.
* Use isHidden() if you want to check if a user is vanished by any supported plugin.
*
* @return If the user is vanished or not
* @see isHidden
*/
boolean isVanished();
void setVanished(boolean vanish);
Teleport getTeleport();
void setJail(String jail);
2012-11-27 17:45:02 +00:00
boolean isIgnoreExempt();
2012-12-23 10:25:29 +00:00
boolean isAfk();
2012-12-23 10:29:26 +00:00
void setAfk(final boolean set);
void setLogoutLocation();
2013-02-08 21:26:21 +00:00
Location getLogoutLocation();
void setConfigProperty(String node, Object object);
Set<String> getConfigKeys();
Map<String, Object> getConfigMap();
Map<String, Object> getConfigMap(String node);
}