程序包 org.bukkit.ban
接口 ProfileBanList
- 所有超级接口:
BanList<PlayerProfile>
A
BanList
targeting player profile bans.-
嵌套类概要
从接口继承的嵌套类/接口 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
- the target of the banreason
- reason for the ban, null indicates implementation defaultexpires
- date for the ban's expiration (unban), or null to imply foreversource
- source of the ban, null indicates implementation default- 返回:
- the entry for the newly created ban, or the entry for the (updated) previous ban
- 抛出:
IllegalArgumentException
- if ProfilePlayer has an invalid UUID
-