Package net.tnemc.plugincore.paper.impl
Class PaperCMDSource
java.lang.Object
net.tnemc.plugincore.core.compatibility.CmdSource<revxrsal.commands.bukkit.actor.BukkitCommandActor>
net.tnemc.plugincore.paper.impl.PaperCMDSource
BukkitCMDSource
- Since:
- 0.1.2.0
- Author:
- creatorfromhell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPlayer()Determines if thisCmdSourceis an instance of a player.voidmessage(MessageData messageData) Used to send a message to this command source.player()Used to get the relatedPlayerProviderfor this command source.Methods inherited from class net.tnemc.plugincore.core.compatibility.CmdSource
getActor, identifier, name
-
Constructor Details
-
PaperCMDSource
-
-
Method Details
-
isPlayer
Determines if thisCmdSourceis an instance of a player. -
player
Used to get the relatedPlayerProviderfor this command source.- Specified by:
playerin classCmdSource<revxrsal.commands.bukkit.actor.BukkitCommandActor>- 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.
-