UNPKG

typesforbukkit

Version:

Types For Bukkit

38 lines (26 loc) 1.2 kB
// API Link: https://tfb.neocities.org/1.16.5/org/bukkit/BanEntry namespace org.bukkit { /** @description A single entry from a ban list. This may represent either a player ban or an IP ban */ export interface BanEntry { /** @description Gets the date this ban entry was created */ getCreated() : java.util.Date; /** @description Gets the date this ban expires on, or null for no defined end date */ getExpiration() : java.util.Date; /** @description Gets the reason for this ban */ getReason() : String; /** @description Gets the source of this ban */ getSource() : String; /** @description Gets the target involved */ getTarget() : String; /** @description Saves the ban entry, overwriting any previous data in the ban list */ save() : void; /** @description Sets the date this ban entry was created */ setCreated(created: java.util.Date) : void; /** @description Sets the date this ban expires on */ setExpiration(reason: String) : void; /** @description Sets the reason for this ban */ setReason(reason: String) : void; /** @description Sets the source of this ban */ setSource(source: String) : void; } }