Class CmdSource<T extends revxrsal.commands.command.CommandActor>
java.lang.Object
net.tnemc.plugincore.core.compatibility.CmdSource<T>
- Direct Known Subclasses:
BukkitCMDSource,PaperCMDSource,SpongeCMDSource
CmdSource
- Since:
- 0.1.2.0
- Author:
- creatorfromhell
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActor()The UUID of this command source.abstract booleanisPlayer()Determines if thisCmdSourceis an instance of a player.abstract voidmessage(MessageData messageData) Used to send a message to this command source.name()The name of this command source.abstract Optional<PlayerProvider> player()Used to get the relatedPlayerProviderfor this command source.
-
Constructor Details
-
CmdSource
-
-
Method Details
-
identifier
The UUID of this command source.- Returns:
- The UUID of this command source.
-
name
The name of this command source.- Returns:
- The name of this command source.
-
isPlayer
Determines if thisCmdSourceis an instance of a player.- Returns:
- True if this represents a player, otherwise false if it's a non-player such as the console.
-
player
Used to get the relatedPlayerProviderfor this command source.- Returns:
- An optional containing the related
PlayerProviderif this command source is a player, otherwise an emptyOptional.
-
message
Used to send a message to this command source.- Parameters:
messageData- The message data to utilize for this translation.
-
getActor
-