接口的使用
org.bukkit.OfflinePlayer
程序包
说明
Bukkit的常用类.
用于操作在
世界
内的三位像素(方块),包括一些特定的状态.专门用于处理插件运行时配置的类.
为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.用于操作可以被存储在
物品堆
的额外数据的接口.用于管理客户端计分板显示系统的类.
-
org.bukkit中OfflinePlayer的使用
修饰符和类型方法说明static OfflinePlayer
Bukkit.getOfflinePlayer
(String name) 已过时。Persistent storage of users should be by UUID as names are no longer unique past a single session.static OfflinePlayer
Bukkit.getOfflinePlayer
(UUID id) 以指定的UUID获取玩家,无论他们使用正版模式还是离线模式.Server.getOfflinePlayer
(String name) 已过时。UUID将会在不久后代替nameServer.getOfflinePlayer
(UUID id) 通过UUID获取OfflinePlayer实例static OfflinePlayer[]
Bukkit.getOfflinePlayers()
获取曾在此服务器游戏的玩家.Server.getOfflinePlayers()
获取所有登陆过服务器的玩家修饰符和类型方法说明static Set<OfflinePlayer>
Bukkit.getBannedPlayers()
获取已被封禁的玩家.Server.getBannedPlayers()
获得一组所有被服务器封禁的玩家.static Set<OfflinePlayer>
Bukkit.getOperators()
获取服务器的所有OP(管理员).Server.getOperators()
获取一个包含所有OP的Set实例static Set<OfflinePlayer>
Bukkit.getWhitelistedPlayers()
获取所有已被添加到白名单的玩家.Server.getWhitelistedPlayers()
获得所有在白名单中的玩家. -
org.bukkit.block中OfflinePlayer的使用
-
org.bukkit.configuration中OfflinePlayer的使用
修饰符和类型方法说明ConfigurationSection.getOfflinePlayer
(String path) 在指定路径获取一个OfflinePlayer
类型的值.ConfigurationSection.getOfflinePlayer
(String path, OfflinePlayer def) 在指定路径上获取一个OfflinePlayer
, 如果无法获取, 则直接返回默认值.MemorySection.getOfflinePlayer
(String path) MemorySection.getOfflinePlayer
(String path, OfflinePlayer def) 修饰符和类型方法说明ConfigurationSection.getOfflinePlayer
(String path, OfflinePlayer def) 在指定路径上获取一个OfflinePlayer
, 如果无法获取, 则直接返回默认值.MemorySection.getOfflinePlayer
(String path, OfflinePlayer def) -
org.bukkit.entity中OfflinePlayer的使用
-
org.bukkit.inventory.meta中OfflinePlayer的使用
-
org.bukkit.scoreboard中OfflinePlayer的使用
修饰符和类型方法说明Scoreboard.getPlayers()
已过时。Scoreboards can contain entries that aren't playersTeam.getPlayers()
已过时。Teams can contain entries that aren't players修饰符和类型方法说明void
Team.addPlayer
(OfflinePlayer player) 已过时。Teams can contain entries that aren't playersScoreboard.getPlayerTeam
(OfflinePlayer player) 已过时。记分板可以包含不玩家条目Objective.getScore
(OfflinePlayer player) 已过时。计分板可以包含非玩家项Scoreboard.getScores
(OfflinePlayer player) 已过时。Scoreboards can contain entries that aren't playersboolean
Team.hasPlayer
(OfflinePlayer player) 已过时。Teams can contain entries that aren't playersboolean
Team.removePlayer
(OfflinePlayer player) 已过时。Teams can contain entries that aren't playersvoid
Scoreboard.resetScores
(OfflinePlayer player) 已过时。Scoreboards can contain entries that aren't players