Class CmdSource<T extends revxrsal.commands.command.CommandActor>

java.lang.Object
net.tnemc.plugincore.core.compatibility.CmdSource<T>
Direct Known Subclasses:
BukkitCMDSource, PaperCMDSource, SpongeCMDSource

public abstract class CmdSource<T extends revxrsal.commands.command.CommandActor> extends Object
CmdSource
Since:
0.1.2.0
Author:
creatorfromhell
See Also:
  • Constructor Details

  • Method Details

    • identifier

      The UUID of this command source.
      Returns:
      The UUID of this command source.
    • name

      public String name()
      The name of this command source.
      Returns:
      The name of this command source.
    • isPlayer

      public abstract boolean isPlayer()
      Determines if this CmdSource is 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

      public abstract Optional<PlayerProvider> player()
      Used to get the related PlayerProvider for this command source.
      Returns:
      An optional containing the related PlayerProvider if this command source is a player, otherwise an empty Optional.
    • message

      public abstract void message(MessageData messageData)
      Used to send a message to this command source.
      Parameters:
      messageData - The message data to utilize for this translation.
    • getActor

      public T getActor()