Package net.tnemc.plugincore.sponge.impl
Class SpongeCMDSource
java.lang.Object
net.tnemc.plugincore.core.compatibility.CmdSource<revxrsal.commands.sponge.actor.SpongeCommandActor>
net.tnemc.plugincore.sponge.impl.SpongeCMDSource
SpongeCMDSource
- 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
-
SpongeCMDSource
-
-
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.sponge.actor.SpongeCommandActor>- 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.
-