程序包 org.bukkit.ban
接口 ProfileBanList
- 所有超级接口:
BanList<PlayerProfile>
-
嵌套类概要
从接口继承的嵌套类/接口 org.bukkit.BanList
BanList.Type -
方法概要
从接口继承的方法 org.bukkit.BanList
addBan, addBan, addBan, getBanEntries, getBanEntry, getBanEntry, getEntries, isBanned, isBanned, pardon, pardon
-
方法详细资料
-
addBan
@Nullable @Nullable BanEntry<PlayerProfile> addBan(@NotNull @NotNull PlayerProfile target, @Nullable @Nullable String reason, @Nullable @Nullable Date expires, @Nullable @Nullable String source) 添加一个封禁到这个列表。如果以前的封禁存在,这将更新以前的封禁.原文:Adds a ban to this list. If a previous ban exists, this will update the previous entry.
- 指定者:
addBan在接口中BanList<PlayerProfile>- 参数:
target- 封禁的目标reason- 封禁原因, null表示使用实现默认值expires- 封禁的过期日期(解封日期), null表示永久封禁source- 封禁的来源, null表示使用实现默认值- 返回:
- 新创建的封禁条目, 或(更新后的)先前封禁条目
- 抛出:
IllegalArgumentException- 如果PlayerProfile具有无效的UUID
-