Package cloud.commandframework.bukkit
Class BukkitCommandSender
java.lang.Object
cloud.commandframework.bukkit.BukkitCommandSender
Deprecated.
No longer used since pre 1.0.0
Command sender that proxies
CommandSender-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBukkitCommandSender(@NonNull org.bukkit.command.CommandSender internalSender) Deprecated.Create a new command sender from a BukkitCommandSender -
Method Summary
Modifier and TypeMethodDescriptionabstract @NonNull org.bukkit.entity.PlayerasPlayer()Deprecated.Get this sender as a player.static @NonNull BukkitCommandSenderconsole()Deprecated.Construct a newBukkitCommandSenderfor the Bukkit consolefinal booleanDeprecated.@NonNull org.bukkit.command.CommandSenderDeprecated.Get the proxiedCommandSenderfinal inthashCode()Deprecated.abstract booleanisPlayer()Deprecated.Check if this sender represents a playerstatic @NonNull BukkitCommandSenderof(@NonNull org.bukkit.command.CommandSender sender) Deprecated.Construct a newBukkitCommandSenderfrom a BukkitCommandSenderstatic @NonNull BukkitCommandSenderplayer(@NonNull org.bukkit.entity.Player player) Deprecated.Construct a newBukkitCommandSenderfor aPlayervoidsendMessage(@NonNull String message) Deprecated.Send a message to the command sender
-
Constructor Details
-
BukkitCommandSender
protected BukkitCommandSender(@NonNull org.bukkit.command.CommandSender internalSender) Deprecated.Create a new command sender from a BukkitCommandSender- Parameters:
internalSender- Bukkit command sender
-
-
Method Details
-
player
Deprecated.Construct a newBukkitCommandSenderfor aPlayer- Parameters:
player- Player instance- Returns:
- Constructed command sender
-
console
Deprecated.Construct a newBukkitCommandSenderfor the Bukkit console- Returns:
- Constructed command sender
-
of
Deprecated.Construct a newBukkitCommandSenderfrom a BukkitCommandSender- Parameters:
sender- Bukkit command sender- Returns:
- Constructed command sender
-
equals
Deprecated. -
hashCode
public final int hashCode()Deprecated. -
getInternalSender
public @NonNull org.bukkit.command.CommandSender getInternalSender()Deprecated.Get the proxiedCommandSender- Returns:
- Proxied command sneder
-
isPlayer
public abstract boolean isPlayer()Deprecated.Check if this sender represents a player- Returns:
trueif this sender represents a player,falseif not
-
asPlayer
public abstract @NonNull org.bukkit.entity.Player asPlayer()Deprecated.Get this sender as a player. This can only safely be done ifisPlayer()} returnstrue- Returns:
- Player object
-
sendMessage
Deprecated.Send a message to the command sender- Parameters:
message- Message to send
-