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 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
-
SpongeCMDSource
-
-
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.sponge.actor.SpongeCommandActor>
- 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.
-