All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.jorel.commandapi.commandsenders.AbstractCommandSender Maven / Gradle / Ivy

There is a newer version: 9.5.3
Show newest version
package dev.jorel.commandapi.commandsenders;

/**
 * An interface that represents an object sends commands on some platform
 *
 * @param  The class of the CommandSender being represented
 */
public interface AbstractCommandSender {

	/**
	 * Tests if this CommandSender has permission to use the given permission node
	 *
	 * @param permissionNode The node to check for
	 * @return True if this CommandSender holds the permission node, and false otherwise
	 */
	boolean hasPermission(String permissionNode);

	/**
	 * Tests if this CommandSender has `operator` status, or the ability to run any command
	 *
	 * @return True if this CommandSender is an operator, and false otherwise
	 */
	boolean isOp();

	/**
	 * @return The underlying CommandSender object
	 */
	Source getSource();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy