dynmap/DynmapCore/src/main/java/org/dynmap/common/DynmapCommandSender.java

32 lines
911 B
Java

package org.dynmap.common;
public interface DynmapCommandSender {
/**
* Does command sender have given security privilege
* @param privid - privilege ID
* @return true if it does, false if it doesn't
*/
public boolean hasPrivilege(String privid);
/**
* Send given message to command sender
* @param msg - message to be sent (with color codes marked &0 to &F)
*/
public void sendMessage(String msg);
/**
* Test if command sender is still connected/online
* @return true if connected, false if not
*/
public boolean isConnected();
/**
* Is operator privilege
* @return true if operator
*/
public boolean isOp();
/**
* Test for permission node (no dynmap. prefix assumed)
* @param node - permission ID
* @return true if allowed
*/
public boolean hasPermissionNode(String node);
}