Class BukkitCMDSource

java.lang.Object
net.tnemc.plugincore.core.compatibility.CmdSource<revxrsal.commands.bukkit.actor.BukkitCommandActor>
net.tnemc.plugincore.bukkit.impl.BukkitCMDSource

public class BukkitCMDSource extends CmdSource<revxrsal.commands.bukkit.actor.BukkitCommandActor>
BukkitCMDSource
Since:
0.1.2.0
Author:
creatorfromhell
  • Constructor Details

    • BukkitCMDSource

      public BukkitCMDSource(revxrsal.commands.bukkit.actor.BukkitCommandActor actor)
  • Method Details

    • isPlayer

      public boolean isPlayer()
      Determines if this CmdSource is an instance of a player.
      Specified by:
      isPlayer in class CmdSource<revxrsal.commands.bukkit.actor.BukkitCommandActor>
      Returns:
      True if this represents a player, otherwise false if it's a non-player such as the console.
    • player

      Used to get the related PlayerProvider for this command source.
      Specified by:
      player in class CmdSource<revxrsal.commands.bukkit.actor.BukkitCommandActor>
      Returns:
      An optional containing the related PlayerProvider if this command source is a player, otherwise an empty Optional.
    • message

      public void message(MessageData messageData)
      Used to send a message to this command source.
      Specified by:
      message in class CmdSource<revxrsal.commands.bukkit.actor.BukkitCommandActor>
      Parameters:
      messageData - The message data to utilize for this translation.