2011-06-01 10:40:12 +00:00
|
|
|
package com.earth2me.essentials;
|
|
|
|
|
|
|
|
import com.earth2me.essentials.commands.IEssentialsCommand;
|
2013-05-05 03:13:17 +00:00
|
|
|
import java.math.BigDecimal;
|
2013-02-12 19:40:49 +00:00
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Set;
|
2011-06-01 10:40:12 +00:00
|
|
|
import org.bukkit.Location;
|
|
|
|
import org.bukkit.entity.Player;
|
2011-12-06 16:28:48 +00:00
|
|
|
|
|
|
|
|
2011-12-13 07:38:15 +00:00
|
|
|
public interface IUser extends Player
|
2011-06-01 10:40:12 +00:00
|
|
|
{
|
|
|
|
long getLastTeleportTimestamp();
|
|
|
|
|
|
|
|
boolean isAuthorized(String node);
|
|
|
|
|
|
|
|
boolean isAuthorized(IEssentialsCommand cmd);
|
2011-08-23 05:09:34 +00:00
|
|
|
|
2011-06-26 13:47:28 +00:00
|
|
|
boolean isAuthorized(IEssentialsCommand cmd, String permissionPrefix);
|
2011-06-01 10:40:12 +00:00
|
|
|
|
|
|
|
void setLastTeleportTimestamp(long time);
|
|
|
|
|
|
|
|
Location getLastLocation();
|
|
|
|
|
|
|
|
Player getBase();
|
|
|
|
|
2013-05-05 03:13:17 +00:00
|
|
|
BigDecimal getMoney();
|
2011-06-01 10:40:12 +00:00
|
|
|
|
2013-05-05 03:13:17 +00:00
|
|
|
void takeMoney(BigDecimal value);
|
2011-06-01 10:40:12 +00:00
|
|
|
|
2013-05-05 03:13:17 +00:00
|
|
|
void giveMoney(BigDecimal value);
|
2012-02-26 04:15:14 +00:00
|
|
|
|
2013-05-05 03:13:17 +00:00
|
|
|
boolean canAfford(BigDecimal value);
|
2011-06-13 13:05:31 +00:00
|
|
|
|
2011-06-01 10:40:12 +00:00
|
|
|
String getGroup();
|
|
|
|
|
|
|
|
void setLastLocation();
|
|
|
|
|
2011-08-24 04:18:35 +00:00
|
|
|
Location getHome(String name) throws Exception;
|
2011-08-23 05:09:34 +00:00
|
|
|
|
2011-08-24 04:18:35 +00:00
|
|
|
Location getHome(Location loc) throws Exception;
|
2011-06-01 10:40:12 +00:00
|
|
|
|
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
|
|
|
|
*/
|
|
|
|
|
2011-09-02 14:15:57 +00:00
|
|
|
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);
|
2011-12-06 16:28:48 +00:00
|
|
|
|
|
|
|
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);
|
2013-02-08 20:22:35 +00:00
|
|
|
|
|
|
|
void setLogoutLocation();
|
2013-02-08 21:26:21 +00:00
|
|
|
|
|
|
|
Location getLogoutLocation();
|
2013-02-12 19:40:49 +00:00
|
|
|
|
|
|
|
void setConfigProperty(String node, Object object);
|
|
|
|
|
|
|
|
Set<String> getConfigKeys();
|
|
|
|
|
|
|
|
Map<String, Object> getConfigMap();
|
|
|
|
|
|
|
|
Map<String, Object> getConfigMap(String node);
|
2011-06-01 10:40:12 +00:00
|
|
|
}
|