Package com.plotsquared.core.command
Interface CommandCaller
- All Known Implementing Classes:
ConsolePlayer
,PlotPlayer
public interface CommandCaller
Any entity that is able to execute commands, receive messages & and have
permission nodes
-
Method Summary
Modifier and TypeMethodDescriptionGet the type of the callerboolean
hasPermission(@NonNull String permission)
Check the player's permissions.void
sendMessage(@NonNull Caption caption, @NonNull net.kyori.adventure.text.minimessage.Template... replacements)
Send a message to the command caller
-
Method Details
-
hasPermission
Check the player's permissions. Will be cached if permission caching is enabled.- Parameters:
permission
- the name of the permission- Returns:
- if permission is had
-
getSuperCaller
RequiredType getSuperCaller()Get the type of the caller- Returns:
- Caller type