PlotSquared/src/main/java/com/intellectualcrafters/plot/object/PlotPlayer.java

64 lines
1.4 KiB
Java
Raw Normal View History

2015-02-20 11:53:18 +01:00
package com.intellectualcrafters.plot.object;
import java.util.UUID;
2015-07-27 17:14:38 +02:00
import com.intellectualsites.commands.CommandCaller;
2015-02-20 11:53:18 +01:00
/**
* Created 2015-02-20 for PlotSquared
*
* @author Citymonstret
*/
2015-07-27 17:14:38 +02:00
public interface PlotPlayer extends CommandCaller {
2015-04-06 14:16:24 +02:00
public long getPreviousLogin();
2015-02-20 12:23:48 +01:00
public Location getLocation();
2015-02-23 02:32:27 +01:00
2015-02-23 12:37:36 +01:00
public Location getLocationFull();
2015-02-20 12:23:48 +01:00
public UUID getUUID();
2015-02-23 02:32:27 +01:00
2015-02-20 12:23:48 +01:00
public boolean hasPermission(final String perm);
2015-02-23 02:32:27 +01:00
public void sendMessage(final String message);
2015-02-20 12:23:48 +01:00
public void teleport(final Location loc);
2015-07-20 07:14:46 +02:00
2015-02-20 12:23:48 +01:00
public boolean isOp();
2015-02-23 02:32:27 +01:00
2015-02-20 12:23:48 +01:00
public boolean isOnline();
2015-02-22 13:46:47 +01:00
2015-02-23 02:32:27 +01:00
public String getName();
2015-02-22 13:46:47 +01:00
public void setCompassTarget(Location loc);
2015-05-04 11:52:37 +02:00
public void loadData();
public void saveData();
2015-06-05 14:39:31 +02:00
/**
* Set player data that will persist restarts
* - Please note that this is not intended to store large values
* - For session only data use meta
* @param key
*/
public void setAttribute(String key);
/**
* The attribute will be either true or false
* @param key
*/
public boolean getAttribute(String key);
/**
* Remove an attribute from a player
* @param key
*/
public void removeAttribute(String key);
2015-05-04 11:52:37 +02:00
public void setMeta(String key, Object value);
public Object getMeta(String key);
public void deleteMeta(String key);
2015-02-20 11:53:18 +01:00
}