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
-
sendMessage
void sendMessage(@NonNull Caption caption, @NonNull net.kyori.adventure.text.minimessage.Template... replacements) Send a message to the command caller- Parameters:
caption
- Caption to sendreplacements
- Variable replacements
-
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
Get the type of the caller- Returns:
- Caller type
-