接口的使用
org.bukkit.entity.Player
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
用于操作在
世界
内的三位像素(方块),包括一些特定的状态.与创建Boss血量条(出现在玩家客户端屏幕顶部)有关的类.
致力于简化玩家与插件的直接通信的类(玩家与插件的对话,典型的场景比如操作的确认、提供插件所需数据).
为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.与袭击有关的
事件
(Minecraft Wiki - 袭击).与服务器程序状态变化有关的
事件
.用于简化处理
地图
显示内容的类.用于设定插件至客户端的消息传输协议的类.
Spigot特有的玩家事件.
-
org.bukkit中Player的使用
修饰符和类型方法说明使用给定玩家名模糊搜索玩家(名字最近似的玩家).使用给定UUID
获取玩家.OfflinePlayer.getPlayer()
获取一个Player
对象使用给定玩家名模糊搜索玩家(名字最近似的玩家).使用给定UUID
获取玩家.Bukkit.getPlayerExact
(@NotNull String name) 使用给定玩家名精确查找玩家, 不区分大小写.Server.getPlayerExact
(@NotNull String name) 使用给定玩家名精确查找玩家, 不区分大小写.修饰符和类型方法说明static @NotNull Collection<? extends Player>
Bukkit.getOnlinePlayers()
获取所有在线玩家的集合的视图.@NotNull Collection<? extends Player>
Server.getOnlinePlayers()
获取所有在线玩家的集合的视图.World.getPlayers()
获取一个这个世界的所有玩家的列表.Chunk.getPlayersSeeingChunk()
Get a list of all players who are can view the chunk from their clientWorld.getPlayersSeeingChunk
(int x, int z) Get a list of all players who are can view the specified chunk from their clientWorld.getPlayersSeeingChunk
(@NotNull Chunk chunk) Get a list of all players who are can view the specified chunk from their clientBukkit.matchPlayer
(@NotNull String name) 尝试获取所有匹配给定名称的玩家, 并返回包含了一切可能匹配的列表.Server.matchPlayer
(@NotNull String name) 尝试获取所有匹配给定名称的玩家, 并返回包含了一切可能匹配的列表.修饰符和类型方法说明Get the crafted item using the list ofItemStack
provided.Get the crafted item using the list ofItemStack
provided.static @NotNull ItemCraftResult
Bukkit.craftItemResult
(@NotNull ItemStack[] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStack
provided.Server.craftItemResult
(@NotNull ItemStack[] craftingMatrix, @NotNull World world, @NotNull Player player) Get the crafted item using the list ofItemStack
provided. -
org.bukkit.block中Player的使用
修饰符和类型方法说明float
Block.getBreakSpeed
(@NotNull Player player) Gets the speed at which the given player would break this block, taking into account tools, potion effects, whether or not the player is in water, enchantments, etc.Sign.getTargetSide
(@NotNull Player player) Gets the side of this sign the given player is currently standing on.boolean
TrialSpawner.isTrackingPlayer
(@NotNull Player player) Checks if this spawner is currently tracking the provided player.void
TrialSpawner.startTrackingPlayer
(@NotNull Player player) Force this spawner to start tracking the provided player.void
TrialSpawner.stopTrackingPlayer
(@NotNull Player player) Force this spawner to stop tracking the provided player.void
Simulates a player causing a vibration. -
org.bukkit.boss中Player的使用
-
org.bukkit.conversations中Player的使用
修饰符和类型方法说明PlayerNamePrompt.acceptValidatedInput
(@NotNull ConversationContext context, @NotNull Player input) Override this method to perform some action with the user's player name response. -
org.bukkit.entity中Player的使用
修饰符和类型方法说明LightningStrike.getCausingPlayer()
Get thePlayer
that caused this lightning to strike.LivingEntity.getKiller()
获取击杀指定生物实体的玩家.修饰符和类型方法说明Player.Spigot.getHiddenPlayers()
获取所有用hidePlayer(org.bukkit.entity.Player)
隐藏的玩家.Entity.getTrackedBy()
Get all players that are currently tracking this entity.修饰符和类型方法说明boolean
检查该玩家是否能看到某玩家.void
Player.hidePlayer
(@NotNull Player player) 已过时。void
Player.hidePlayer
(@NotNull Plugin plugin, @NotNull Player player) 让该玩家看不见某玩家.void
LightningStrike.setCausingPlayer
(@Nullable Player player) Set thePlayer
that caused this lightning to strike.void
Player.showPlayer
(@NotNull Player player) 已过时。void
Player.showPlayer
(@NotNull Plugin plugin, @NotNull Player player) 让该玩家能看到之前被隐藏的玩家. -
org.bukkit.event.block中Player的使用
修饰符和类型方法说明BlockBreakEvent.getPlayer()
获取破坏这个方块的玩家.BlockCanBuildEvent.getPlayer()
获得放置这个方块的玩家.BlockDamageAbortEvent.getPlayer()
Gets the player that stopped damaging the block involved in this event.BlockDamageEvent.getPlayer()
获取试图损坏这个方块的玩家.BlockDropItemEvent.getPlayer()
获取破坏这个方块的玩家.BlockFertilizeEvent.getPlayer()
获取进行施肥的玩家.BlockIgniteEvent.getPlayer()
获取点燃方块的玩家,如果不是玩家点燃的就返回null.BlockPlaceEvent.getPlayer()
获得放置这个方块的玩家.SignChangeEvent.getPlayer()
获得设置这个牌子上的字的玩家.限定符构造器说明BlockBreakEvent
(@NotNull Block theBlock, @NotNull Player player) BlockCanBuildEvent
(@NotNull Block block, @Nullable Player player, @NotNull BlockData type, boolean canBuild) BlockDamageEvent
(@NotNull Player player, @NotNull Block block, @NotNull ItemStack itemInHand, boolean instaBreak) BlockDropItemEvent
(@NotNull Block block, @NotNull BlockState blockState, @NotNull Player player, @NotNull List<Item> items) BlockFertilizeEvent
(@NotNull Block theBlock, @Nullable Player player, @NotNull List<BlockState> blocks) BlockMultiPlaceEvent
(@NotNull List<BlockState> states, @NotNull Block clicked, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild) BlockPlaceEvent
(@NotNull Block placedBlock, @NotNull BlockState replacedBlockState, @NotNull Block placedAgainst, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild) 已过时。BlockPlaceEvent
(@NotNull Block placedBlock, @NotNull BlockState replacedBlockState, @NotNull Block placedAgainst, @NotNull ItemStack itemInHand, @NotNull Player thePlayer, boolean canBuild, @NotNull EquipmentSlot hand) 已过时。SignChangeEvent
(@NotNull Block theBlock, @NotNull Player thePlayer, @NotNull String[] theLines, @NotNull Side side) -
org.bukkit.event.enchantment中Player的使用
修饰符和类型方法说明EnchantItemEvent.getEnchanter()
获取附魔这个物品的玩家。PrepareItemEnchantEvent.getEnchanter()
获取正在为物品附魔的玩家.限定符构造器说明EnchantItemEvent
(@NotNull Player enchanter, @NotNull InventoryView view, @NotNull Block table, @NotNull ItemStack item, int level, @NotNull Map<Enchantment, Integer> enchants, @NotNull Enchantment enchantmentHint, int levelHint, int i) PrepareItemEnchantEvent
(@NotNull Player enchanter, @NotNull InventoryView view, @NotNull Block table, @NotNull ItemStack item, @NotNull EnchantmentOffer[] offers, int bonus) -
org.bukkit.event.entity中Player的使用
修饰符和类型方法说明PlayerDeathEvent.getEntity()
EntityPlaceEvent.getPlayer()
返回放置此实体的玩家.PlayerLeashEntityEvent.getPlayer()
Returns the player involved in this eventSheepDyeWoolEvent.getPlayer()
返回正在给这只羊染色的玩家 (若存在).限定符构造器说明EntityPlaceEvent
(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace) 已过时。EntityPlaceEvent
(@NotNull Entity entity, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @NotNull EquipmentSlot hand) PlayerDeathEvent
(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, int newExp, int newTotalExp, int newLevel, @Nullable String deathMessage) PlayerDeathEvent
(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, int newExp, @Nullable String deathMessage) PlayerDeathEvent
(@NotNull Player player, @NotNull DamageSource damageSource, @NotNull List<ItemStack> drops, int droppedExp, @Nullable String deathMessage) 已过时。PlayerLeashEntityEvent
(@NotNull Entity what, @NotNull Entity leashHolder, @NotNull Player leasher, @NotNull EquipmentSlot hand) -
org.bukkit.event.hanging中Player的使用
限定符构造器说明HangingPlaceEvent
(@NotNull Hanging hanging, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @Nullable EquipmentSlot hand) 已过时。HangingPlaceEvent
(@NotNull Hanging hanging, @Nullable Player player, @NotNull Block block, @NotNull BlockFace blockFace, @Nullable EquipmentSlot hand, @Nullable ItemStack itemStack) -
org.bukkit.event.inventory中Player的使用
-
org.bukkit.event.player中Player的使用
修饰符和类型方法说明AsyncPlayerChatEvent.getRecipients()
获取一个将看到这条消息的玩家的集合。PlayerChatEvent.getRecipients()
已过时。获取一个将被展示这条消息的玩家的集合。PlayerCommandPreprocessEvent.getRecipients()
已过时。该方法无法保证在每个版本上的效果修饰符和类型方法说明void
已过时。设置这条消息显示成的玩家,或谁将执行这条命令.void
设置这个命令的执行者限定符构造器说明AsyncPlayerChatEvent
(boolean async, @NotNull Player who, @NotNull String message, @NotNull Set<Player> players) AsyncPlayerChatPreviewEvent
(boolean async, @NotNull Player who, @NotNull String message, @NotNull Set<Player> players) 已过时。PlayerAdvancementDoneEvent
(@NotNull Player who, @NotNull Advancement advancement) PlayerAnimationEvent
(@NotNull Player player) 已过时。PlayerAnimationEvent
(@NotNull Player player, @NotNull PlayerAnimationType playerAnimationType) 构造一个新的PlayerAnimation事件.PlayerArmorStandManipulateEvent
(@NotNull Player who, @NotNull ArmorStand clickedEntity, @NotNull ItemStack playerItem, @NotNull ItemStack armorStandItem, @NotNull EquipmentSlot slot) 已过时。PlayerArmorStandManipulateEvent
(@NotNull Player who, @NotNull ArmorStand clickedEntity, @NotNull ItemStack playerItem, @NotNull ItemStack armorStandItem, @NotNull EquipmentSlot slot, @NotNull EquipmentSlot hand) PlayerBedEnterEvent
(@NotNull Player who, @NotNull Block bed) 已过时。PlayerBedEnterEvent
(@NotNull Player who, @NotNull Block bed, @NotNull PlayerBedEnterEvent.BedEnterResult bedEnterResult) PlayerBedLeaveEvent
(@NotNull Player who, @NotNull Block bed, boolean setBedSpawn) PlayerBucketEmptyEvent
(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand) 已过时。PlayerBucketEmptyEvent
(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand) 已过时。PlayerBucketEmptyEvent
(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand) PlayerBucketEntityEvent
(@NotNull Player player, @NotNull Entity entity, @NotNull ItemStack originalBucket, @NotNull ItemStack entityBucket, @NotNull EquipmentSlot hand) PlayerBucketEvent
(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand) 已过时。PlayerBucketEvent
(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand) 已过时。PlayerBucketEvent
(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand) PlayerBucketFillEvent
(@NotNull Player who, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand) 已过时。PlayerBucketFillEvent
(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand) 已过时。PlayerBucketFillEvent
(@NotNull Player who, @NotNull Block block, @NotNull Block blockClicked, @NotNull BlockFace blockFace, @NotNull Material bucket, @NotNull ItemStack itemInHand, @NotNull EquipmentSlot hand) PlayerBucketFishEvent
(@NotNull Player player, @NotNull Fish fish, @NotNull ItemStack waterBucket, @NotNull ItemStack fishBucket, @NotNull EquipmentSlot hand) 已过时。PlayerChangedMainHandEvent
(@NotNull Player who, @NotNull MainHand mainHand) PlayerChangedWorldEvent
(@NotNull Player player, @NotNull World from) PlayerChannelEvent
(@NotNull Player player, @NotNull String channel) PlayerChatEvent
(@NotNull Player player, @NotNull String message) 已过时。PlayerChatEvent
(@NotNull Player player, @NotNull String message, @NotNull String format, @NotNull Set<Player> recipients) 已过时。PlayerChatTabCompleteEvent
(@NotNull Player who, @NotNull String message, @NotNull Collection<String> completions) 已过时。PlayerCommandPreprocessEvent
(@NotNull Player player, @NotNull String message) PlayerCommandPreprocessEvent
(@NotNull Player player, @NotNull String message, @NotNull Set<Player> recipients) PlayerCommandSendEvent
(@NotNull Player player, @NotNull Collection<String> commands) PlayerDropItemEvent
(@NotNull Player player, @NotNull Item drop) PlayerEditBookEvent
(@NotNull Player who, int slot, @NotNull BookMeta previousBookMeta, @NotNull BookMeta newBookMeta, boolean isSigning) PlayerEggThrowEvent
(@NotNull Player player, @NotNull Egg egg, boolean hatching, byte numHatches, @NotNull EntityType hatchingType) PlayerEvent
(@NotNull Player who) PlayerExpChangeEvent
(@NotNull Player player, int expAmount) PlayerExpCooldownChangeEvent
(@NotNull Player player, int newcooldown, @NotNull PlayerExpCooldownChangeEvent.ChangeReason reason) PlayerFishEvent
(@NotNull Player player, @Nullable Entity entity, @NotNull FishHook hookEntity, @NotNull PlayerFishEvent.State state) PlayerFishEvent
(@NotNull Player player, @Nullable Entity entity, @NotNull FishHook hookEntity, @Nullable EquipmentSlot hand, @NotNull PlayerFishEvent.State state) PlayerGameModeChangeEvent
(@NotNull Player player, @NotNull GameMode newGameMode) PlayerHarvestBlockEvent
(@NotNull Player player, @NotNull Block harvestedBlock, @NotNull List<ItemStack> itemsHarvested) 已过时。PlayerHarvestBlockEvent
(@NotNull Player player, @NotNull Block harvestedBlock, @NotNull EquipmentSlot hand, @NotNull List<ItemStack> itemsHarvested) PlayerHideEntityEvent
(@NotNull Player who, @NotNull Entity entity) PlayerInteractAtEntityEvent
(@NotNull Player who, @NotNull Entity clickedEntity, @NotNull Vector position) PlayerInteractAtEntityEvent
(@NotNull Player who, @NotNull Entity clickedEntity, @NotNull Vector position, @NotNull EquipmentSlot hand) PlayerInteractEntityEvent
(@NotNull Player who, @NotNull Entity clickedEntity) PlayerInteractEntityEvent
(@NotNull Player who, @NotNull Entity clickedEntity, @NotNull EquipmentSlot hand) PlayerInteractEvent
(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace) PlayerInteractEvent
(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace, @Nullable EquipmentSlot hand) PlayerInteractEvent
(@NotNull Player who, @NotNull Action action, @Nullable ItemStack item, @Nullable Block clickedBlock, @NotNull BlockFace clickedFace, @Nullable EquipmentSlot hand, @Nullable Vector clickedPosition) PlayerItemBreakEvent
(@NotNull Player player, @NotNull ItemStack brokenItem) PlayerItemConsumeEvent
(@NotNull Player player, @NotNull ItemStack item) PlayerItemConsumeEvent
(@NotNull Player player, @NotNull ItemStack item, @NotNull EquipmentSlot hand) PlayerItemDamageEvent
(@NotNull Player player, @NotNull ItemStack what, int damage) PlayerItemHeldEvent
(@NotNull Player player, int previous, int current) PlayerItemMendEvent
(@NotNull Player who, @NotNull ItemStack item, @NotNull ExperienceOrb experienceOrb, int repairAmount) 已过时。PlayerItemMendEvent
(@NotNull Player who, @NotNull ItemStack item, @NotNull EquipmentSlot slot, @NotNull ExperienceOrb experienceOrb, int repairAmount) PlayerJoinEvent
(@NotNull Player playerJoined, @Nullable String joinMessage) PlayerKickEvent
(@NotNull Player playerKicked, @NotNull String kickReason, @NotNull String leaveMessage) PlayerLevelChangeEvent
(@NotNull Player player, int oldLevel, int newLevel) PlayerLinksSendEvent
(@NotNull Player player, @NotNull ServerLinks links) PlayerLocaleChangeEvent
(@NotNull Player who, @NotNull String locale) PlayerLoginEvent
(@NotNull Player player, @NotNull String hostname, @NotNull InetAddress address) 这个构造器默认踢出消息为空、登录状态为ALLOWED.PlayerLoginEvent
(@NotNull Player player, @NotNull String hostname, @NotNull InetAddress address, @NotNull InetAddress realAddress) 这个构造器默认踢出消息为空、登录状态为ALLOWED.PlayerLoginEvent
(@NotNull Player player, @NotNull String hostname, @NotNull InetAddress address, @NotNull PlayerLoginEvent.Result result, @NotNull String message, @NotNull InetAddress realAddress) 此构造器预配置事件的结果和消息.PlayerPickupArrowEvent
(@NotNull Player player, @NotNull Item item, @NotNull AbstractArrow arrow) PlayerPickupItemEvent
(@NotNull Player player, @NotNull Item item, int remaining) 已过时。PlayerPortalEvent
(@NotNull Player player, @NotNull Location from, @Nullable Location to, @NotNull PlayerTeleportEvent.TeleportCause cause) PlayerPortalEvent
(@NotNull Player player, @NotNull Location from, @Nullable Location to, @NotNull PlayerTeleportEvent.TeleportCause cause, int getSearchRadius, boolean canCreatePortal, int creationRadius) PlayerQuitEvent
(@NotNull Player who, @Nullable String quitMessage) PlayerRecipeBookClickEvent
(@NotNull Player player, @NotNull Recipe recipe, boolean shiftClick) PlayerRecipeBookSettingsChangeEvent
(@NotNull Player player, @NotNull PlayerRecipeBookSettingsChangeEvent.RecipeBookType recipeBookType, boolean open, boolean filtering) PlayerRecipeDiscoverEvent
(@NotNull Player who, @NotNull NamespacedKey recipe) PlayerRegisterChannelEvent
(@NotNull Player player, @NotNull String channel) PlayerResourcePackStatusEvent
(@NotNull Player who, @NotNull UUID id, @NotNull PlayerResourcePackStatusEvent.Status resourcePackStatus) PlayerRespawnEvent
(@NotNull Player respawnPlayer, @NotNull Location respawnLocation, boolean isBedSpawn) 已过时。PlayerRespawnEvent
(@NotNull Player respawnPlayer, @NotNull Location respawnLocation, boolean isBedSpawn, boolean isAnchorSpawn) 已过时。PlayerRespawnEvent
(@NotNull Player respawnPlayer, @NotNull Location respawnLocation, boolean isBedSpawn, boolean isAnchorSpawn, @NotNull PlayerRespawnEvent.RespawnReason respawnReason) PlayerRiptideEvent
(@NotNull Player who, @NotNull ItemStack item) 已过时。PlayerShearEntityEvent
(@NotNull Player who, @NotNull Entity what) 已过时。PlayerShearEntityEvent
(@NotNull Player who, @NotNull Entity what, @NotNull ItemStack item, @NotNull EquipmentSlot hand) PlayerShowEntityEvent
(@NotNull Player who, @NotNull Entity entity) PlayerSignOpenEvent
(@NotNull Player player, @NotNull Sign sign, @NotNull Side side, @NotNull PlayerSignOpenEvent.Cause cause) PlayerSpawnChangeEvent
(@NotNull Player player, @Nullable Location newSpawn, boolean forced, @NotNull PlayerSpawnChangeEvent.Cause cause) PlayerStatisticIncrementEvent
(@NotNull Player player, @NotNull Statistic statistic, int initialValue, int newValue) PlayerStatisticIncrementEvent
(@NotNull Player player, @NotNull Statistic statistic, int initialValue, int newValue, @NotNull EntityType entityType) PlayerStatisticIncrementEvent
(@NotNull Player player, @NotNull Statistic statistic, int initialValue, int newValue, @NotNull Material material) PlayerSwapHandItemsEvent
(@NotNull Player player, @NotNull ItemStack mainHandItem, @NotNull ItemStack offHandItem) PlayerTakeLecternBookEvent
(@NotNull Player who, @NotNull Lectern lectern) PlayerTeleportEvent
(@NotNull Player player, @NotNull Location from, @Nullable Location to, @NotNull PlayerTeleportEvent.TeleportCause cause) PlayerToggleFlightEvent
(@NotNull Player player, boolean isFlying) PlayerToggleSneakEvent
(@NotNull Player player, boolean isSneaking) PlayerToggleSprintEvent
(@NotNull Player player, boolean isSprinting) PlayerUnleashEntityEvent
(@NotNull Entity entity, @NotNull Player player) 已过时。PlayerUnleashEntityEvent
(@NotNull Entity entity, @NotNull Player player, @NotNull EquipmentSlot hand) PlayerUnregisterChannelEvent
(@NotNull Player player, @NotNull String channel) PlayerVelocityEvent
(@NotNull Player player, @NotNull Vector velocity) 限定符构造器说明AsyncPlayerChatEvent
(boolean async, @NotNull Player who, @NotNull String message, @NotNull Set<Player> players) AsyncPlayerChatPreviewEvent
(boolean async, @NotNull Player who, @NotNull String message, @NotNull Set<Player> players) 已过时。PlayerChatEvent
(@NotNull Player player, @NotNull String message, @NotNull String format, @NotNull Set<Player> recipients) 已过时。PlayerCommandPreprocessEvent
(@NotNull Player player, @NotNull String message, @NotNull Set<Player> recipients) -
org.bukkit.event.raid中Player的使用
-
org.bukkit.event.server中Player的使用
-
org.bukkit.event.world中Player的使用
限定符构造器说明StructureGrowEvent
(@NotNull Location location, @NotNull TreeType species, boolean bonemeal, @Nullable Player player, @NotNull List<BlockState> blocks) -
org.bukkit.map中Player的使用
-
org.bukkit.plugin.messaging中Player的使用
修饰符和类型方法说明void
Messenger.dispatchIncomingMessage
(@NotNull Player source, @NotNull String channel, @org.jetbrains.annotations.NotNull byte[] message) 调度指定接收消息的任何注册过的监听器.void
StandardMessenger.dispatchIncomingMessage
(@NotNull Player source, @NotNull String channel, @org.jetbrains.annotations.NotNull byte[] message) void
PluginMessageListener.onPluginMessageReceived
(@NotNull String channel, @NotNull Player player, @org.jetbrains.annotations.NotNull byte[] message) 当PluginMessageSource(插件消息源)在已注册的通道上发送了插件消息调用此方法. -
org.spigotmc.event.player中Player的使用
hidePlayer(Plugin, Player)