2011-06-01 10:40:12 +00:00
|
|
|
package com.earth2me.essentials;
|
|
|
|
|
|
|
|
import com.earth2me.essentials.commands.IEssentialsCommand;
|
|
|
|
import java.net.InetSocketAddress;
|
|
|
|
import org.bukkit.Location;
|
|
|
|
import org.bukkit.entity.Player;
|
|
|
|
import org.bukkit.inventory.PlayerInventory;
|
|
|
|
|
|
|
|
|
|
|
|
public interface IUser
|
|
|
|
{
|
|
|
|
int getHealth();
|
|
|
|
|
|
|
|
Location getLocation();
|
|
|
|
|
|
|
|
boolean isOnline();
|
|
|
|
|
|
|
|
void sendMessage(String string);
|
|
|
|
|
|
|
|
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();
|
|
|
|
|
|
|
|
double getMoney();
|
|
|
|
|
|
|
|
void takeMoney(double value);
|
|
|
|
|
2011-06-13 13:05:31 +00:00
|
|
|
void giveMoney(double value);
|
|
|
|
|
2011-06-01 10:40:12 +00:00
|
|
|
PlayerInventory getInventory();
|
|
|
|
|
|
|
|
void updateInventory();
|
|
|
|
|
|
|
|
String getGroup();
|
|
|
|
|
|
|
|
void setLastLocation();
|
|
|
|
|
2011-08-23 02:42:32 +00:00
|
|
|
Location getHome(String name);
|
2011-08-23 05:09:34 +00:00
|
|
|
|
2011-08-23 02:42:32 +00:00
|
|
|
Location getHome(Location loc);
|
2011-06-01 10:40:12 +00:00
|
|
|
|
|
|
|
String getName();
|
|
|
|
|
|
|
|
InetSocketAddress getAddress();
|
|
|
|
|
|
|
|
String getDisplayName();
|
|
|
|
}
|