Package org.bukkit.ban
Interface ProfileBanList
- All Superinterfaces:
BanList<PlayerProfile>
A
BanList targeting player profile bans.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.BanList
BanList.Type -
Method Summary
Modifier and TypeMethodDescriptionaddBan(@NotNull PlayerProfile target, @Nullable String reason, @Nullable Date expires, @Nullable String source) Adds a ban to this list.<E extends BanEntry<? super PlayerProfile>>
EaddBan(@NotNull PlayerProfile target, @Nullable String reason, @Nullable Date expires, @Nullable String source) Deprecated.<E extends BanEntry<? super PlayerProfile>>
EaddBan(@NotNull PlayerProfile target, @Nullable String reason, Duration duration, @Nullable String source) Deprecated.<E extends BanEntry<? super PlayerProfile>>
EaddBan(@NotNull PlayerProfile target, @Nullable String reason, Instant expires, @Nullable String source) Deprecated.<E extends BanEntry<? super PlayerProfile>>
EgetBanEntry(@NotNull PlayerProfile target) Deprecated.booleanisBanned(@NotNull PlayerProfile target) Deprecated.voidpardon(@NotNull PlayerProfile target) Deprecated.Methods inherited from interface org.bukkit.BanList
addBan, addBan, addBan, getBanEntries, getBanEntry, getBanEntry, getEntries, isBanned, isBanned, pardon, pardon
-
Method Details
-
addBan
@Nullable @Deprecated <E extends BanEntry<? super PlayerProfile>> E addBan(@NotNull @NotNull PlayerProfile target, @Nullable @Nullable String reason, @Nullable @Nullable Date expires, @Nullable @Nullable String source) - Parameters:
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- Returns:
- the entry for the newly created ban, or the entry for the (updated) previous ban
- Throws:
IllegalArgumentException- if ProfilePlayer has an invalid UUID
-
addBan
@Nullable @Nullable BanEntry<PlayerProfile> addBan(@NotNull PlayerProfile target, @Nullable @Nullable String reason, @Nullable @Nullable Date expires, @Nullable @Nullable String source) Description copied from interface:BanListAdds a ban to this list. If a previous ban exists, this will update the previous entry.- Specified by:
addBanin interfaceBanList<PlayerProfile>- Parameters:
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- Returns:
- the entry for the newly created ban, or the entry for the (updated) previous ban
- Throws:
IllegalArgumentException- if ProfilePlayer has an invalid UUID
-
getBanEntry
@Deprecated @Nullable <E extends BanEntry<? super PlayerProfile>> E getBanEntry(@NotNull @NotNull PlayerProfile target) Deprecated. -
isBanned
Deprecated. -
pardon
Deprecated. -
addBan
@Deprecated @Nullable <E extends BanEntry<? super PlayerProfile>> E addBan(@NotNull @NotNull PlayerProfile target, @Nullable @Nullable String reason, @Nullable Instant expires, @Nullable @Nullable String source) Deprecated. -
addBan
@Deprecated @Nullable <E extends BanEntry<? super PlayerProfile>> E addBan(@NotNull @NotNull PlayerProfile target, @Nullable @Nullable String reason, @Nullable Duration duration, @Nullable @Nullable String source) Deprecated.
-
addBan(com.destroystokyo.paper.profile.PlayerProfile, String, Date, String)