程序包 org.bukkit.command

# 接口 CommandSender

所有超级接口:
  `Permissible`, `ServerOperator`

所有已知子接口:
  `AbstractArrow`, `AbstractHorse`, `AbstractSkeleton`, `AbstractVillager`, `AbstractWindCharge`, `Ageable`, `Allay`, `Ambient`, `Animals`, `AreaEffectCloud`, `Armadillo`, `ArmorStand`, `Arrow`, `Axolotl`, `Bat`, `Bee`, `Blaze`, `BlockCommandSender`, `BlockDisplay`, `Boat`, `Bogged`, `Boss`, `Breedable`, `Breeze`, `BreezeWindCharge`, `Camel`, `Cat`, `CaveSpider`, `ChestBoat`, `ChestedHorse`, `Chicken`, `Cod`, `CommandMinecart`, `ComplexEntityPart`, `ComplexLivingEntity`, `ConsoleCommandSender`, `Cow`, `Creature`, `Creeper`, `Damageable`, `Display`, `Dolphin`, `Donkey`, `DragonFireball`, `Drowned`, `Egg`, `ElderGuardian`, `EnderCrystal`, `EnderDragon`, `EnderDragonPart`, `Enderman`, `Endermite`, `EnderPearl`, `EnderSignal`, `Enemy`, `Entity`, `Evoker`, `EvokerFangs`, `ExperienceOrb`, `Explosive`, `ExplosiveMinecart`, `FallingBlock`, `Fireball`, `Firework`, `Fish`, `FishHook`, `Flying`, `Fox`, `Frog`, `Ghast`, `Giant`, `GlowItemFrame`, `GlowSquid`, `Goat`, `Golem`, `Guardian`, `Hanging`, `Hoglin`, `HopperMinecart`, `Horse`, `HumanEntity`, `Husk`, `Illager`, `Illusioner`, `Interaction`, `IronGolem`, `Item`, `ItemDisplay`, `ItemFrame`, `LargeFireball`, `LeashHitch`, `LightningStrike`, `LingeringPotion`, `LivingEntity`, `Llama`, `LlamaSpit`, `MagmaCube`, `Marker`, `Minecart`, `Mob`, `Monster`, `Mule`, `MushroomCow`, `NPC`, `Ocelot`, `OminousItemSpawner`, `Painting`, `Panda`, `Parrot`, `Phantom`, `Pig`, `Piglin`, `PiglinAbstract`, `PiglinBrute`, `PigZombie`, `Pillager`, `Player`, `PolarBear`, `PoweredMinecart`, `Projectile`, `ProxiedCommandSender`, `PufferFish`, `Rabbit`, `Raider`, `Ravager`, `RemoteConsoleCommandSender`, `RideableMinecart`, `Salmon`, `Sheep`, `Shulker`, `ShulkerBullet`, `Silverfish`, `SizedFireball`, `Skeleton`, `SkeletonHorse`, `Slime`, `SmallFireball`, `Sniffer`, `Snowball`, `Snowman`, `SpawnerMinecart`, `SpectralArrow`, `Spellcaster`, `Spider`, `SplashPotion`, `Squid`, `Steerable`, `StorageMinecart`, `Stray`, `Strider`, `Tadpole`, `Tameable`, `TextDisplay`, `ThrowableProjectile`, `ThrownExpBottle`, `ThrownPotion`, `TippedArrow`, `TNTPrimed`, `TraderLlama`, `Trident`, `TropicalFish`, `Turtle`, `Vehicle`, `Vex`, `Villager`, `Vindicator`, `WanderingTrader`, `Warden`, `WaterMob`, `WindCharge`, `Witch`, `Wither`, `WitherSkeleton`, `WitherSkull`, `Wolf`, `Zoglin`, `Zombie`, `ZombieHorse`, `ZombieVillager`

public interface CommandSender extends Permissible

- ## 嵌套类概要

  嵌套类
  修饰符和类型
  接口
  说明
  `static class`
  `CommandSender.Spigot`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull String`
  `getName()`
  获取命令发送者的名字.
  `@NotNull Server`
  `getServer()`
  返回运行此命令的服务器实例.
  `void`
  `sendMessage(@NotNull String message)`
  向命令发送者发送消息.
  `void`
  `sendMessage(@NotNull String... messages)`
  向命令发送者发送多条消息.
  `void`
  `sendMessage(@Nullable UUID sender, @NotNull String message)`
  向命令发送者发送消息.
  `void`
  `sendMessage(@Nullable UUID sender, @NotNull String... messages)`
  向命令发送者发送多条消息.
  `@NotNull CommandSender.Spigot`
  `spigot()`

  ### 从接口继承的方法 org.bukkit.permissions.Permissible

  `addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment`

  ### 从接口继承的方法 org.bukkit.permissions.ServerOperator

  `isOp, setOp`

- ## 方法详细资料

  - ### sendMessage

    void sendMessage(@NotNull @NotNull String message)
    向命令发送者发送消息.

    原文: Sends this sender a message

    参数:
      `message` - 要发送的消息

  - ### sendMessage

    void sendMessage(@NotNull @NotNull String... messages)
    向命令发送者发送多条消息.

    原文: Sends this sender multiple messages

    参数:
      `messages` - 要发送的消息

  - ### sendMessage

    void sendMessage(@Nullable @Nullable UUID sender, @NotNull @NotNull String message)
    向命令发送者发送消息.

    原文: Sends this sender a message

    参数:
      `message` - 要发送的消息
      `sender` - 消息的发送者

  - ### sendMessage

    void sendMessage(@Nullable @Nullable UUID sender, @NotNull @NotNull String... messages)
    向命令发送者发送多条消息.

    原文: Sends this sender multiple messages

    参数:
      `messages` - 要发送的消息
      `sender` - 消息的发送者

  - ### getServer

    @NotNull @NotNull Server getServer()
    返回运行此命令的服务器实例.

    原文: Returns the server instance that this command is running on

    返回:
      服务器实例

  - ### getName

    @NotNull @NotNull String getName()
    获取命令发送者的名字.

    原文: Gets the name of this command sender

    返回:
      发送者的名字

  - ### spigot

    @NotNull @NotNull CommandSender.Spigot spigot()