接口的使用
org.bukkit.BanEntry
程序包
说明
Bukkit API的顶级程序包, 包含通用的API类和接口.
Classes relevant to bans.
为在
世界
内存在的非三维像素单位(实体)提供的接口,包含玩家、怪物、抛射物等.-
org.bukkit中BanEntry的使用
修饰符和类型方法说明BanList.addBan
(@NotNull String target, @Nullable String reason, @Nullable Date expires, @Nullable String source) 已过时。BanList.addBan
(T target, @Nullable String reason, @Nullable Duration duration, @Nullable String source) 添加一个封禁到这个列表。BanList.addBan
(T target, @Nullable String reason, @Nullable Instant expires, @Nullable String source) 添加一个封禁到这个列表。添加一个封禁到这个列表。Adds this user to theProfileBanList
.Adds this user to theProfileBanList
.Adds this user to theProfileBanList
.BanList.getBanEntry
(@NotNull String target) 已过时。BanList.getBanEntry
(T target) 根据封禁目标(IP地址或玩家资料)来获取对应的BanEntry
.修饰符和类型方法说明BanList.getBanEntries()
已过时。该方法返回了一个形参化类的原始使用, 推荐使用带泛型参数的BanList.getEntries()
BanList.getEntries()
获取此列表包含的所有BanEntry
. -
org.bukkit.ban中BanEntry的使用
-
org.bukkit.entity中BanEntry的使用
修饰符和类型方法说明Player.ban
(@Nullable String reason, @Nullable Duration duration, @Nullable String source, boolean kickPlayer) Adds this user to theProfileBanList
.Player.ban
(@Nullable String reason, @Nullable Instant expires, @Nullable String source, boolean kickPlayer) Adds this user to theProfileBanList
.Player.ban
(@Nullable String reason, @Nullable Date expires, @Nullable String source, boolean kickPlayer) Adds this user to theProfileBanList
.Player.banIp
(@Nullable String reason, @Nullable Duration duration, @Nullable String source, boolean kickPlayer) Adds this user's current IP address to theIpBanList
.Player.banIp
(@Nullable String reason, @Nullable Instant expires, @Nullable String source, boolean kickPlayer) Adds this user's current IP address to theIpBanList
.Player.banIp
(@Nullable String reason, @Nullable Date expires, @Nullable String source, boolean kickPlayer) Adds this user's current IP address to theIpBanList
.
BanList.addBan(Object, String, Date, String)