public class PlayerCommandSource extends EntityCommandSource
CommandSource where the sender is a Player.\
createSource| Constructor and Description |
|---|
PlayerCommandSource(org.bukkit.entity.Player sender)
Creates a new
CommandSource with the internal sender of sender. |
| Modifier and Type | Method and Description |
|---|---|
@NotNull com.datasiqn.resultapi.Result<org.bukkit.entity.Player,String> |
getPlayerChecked()
Same as
CommandSource.getPlayer(), except checks if the sender is a player and returns a Result |
getEntityChecked, getLocatableChecked, getSenderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBlock, getBlockChecked, getEntity, getLocatable, getPlayer, hasPermission, hasPermission, sendMessagepublic PlayerCommandSource(org.bukkit.entity.Player sender)
CommandSource with the internal sender of sender.
createSourcesender - The sender@NotNull public @NotNull com.datasiqn.resultapi.Result<org.bukkit.entity.Player,String> getPlayerChecked()
CommandSourceCommandSource.getPlayer(), except checks if the sender is a player and returns a ResultrequiresPlayer, use CommandSource.getPlayer() insteadCopyright © 2024. All rights reserved.