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 TypeMethodDescriptionboolean
isPlayer()
Determines if thisCmdSource
is an instance of a player.void
message
(MessageData messageData) Used to send a message to this command source.player()
Used to get the relatedPlayerProvider
for this command source.Methods inherited from class net.tnemc.plugincore.core.compatibility.CmdSource
getActor, identifier, name
-
Constructor Details
-
PaperCMDSource
-
-
Method Details
-
isPlayer
Determines if thisCmdSource
is an instance of a player. -
player
Used to get the relatedPlayerProvider
for this command source.- Specified by:
player
in classCmdSource<revxrsal.commands.bukkit.actor.BukkitCommandActor>
- Returns:
- An optional containing the related
PlayerProvider
if this command source is a player, otherwise an emptyOptional
.
-
message
Used to send a message to this command source.
-