Class endstone::IpBanEntry¶
ClassList > endstone > IpBanEntry
Inherits the following classes: endstone::BanEntry
Public Types inherited from endstone::BanEntry¶
Type | Name |
---|---|
typedef std::chrono::system_clock::time_point | Date |
Public Static Attributes inherited from endstone::BanEntry¶
Type | Name |
---|---|
const std::string | DateFormat = = "%FT%T%Ez" |
Public Functions¶
Type | Name |
---|---|
IpBanEntry (std::string address) |
|
std::string | getAddress () const Gets the banned IP address. |
Public Functions inherited from endstone::BanEntry¶
Type | Name |
---|---|
Date | getCreated () const Gets the date this ban entry was created. |
std::optional< Date > | getExpiration () const Gets the date this ban expires on, or std::nullopt for no defined end date. |
std::string | getReason () const Gets the reason for this ban. |
std::string | getSource () const Gets the source of this ban. |
void | setCreated (Date created) Sets the date this ban entry was created. |
void | setExpiration (std::optional< Date > expiration) Sets the date this ban expires on. std::nullopt values are considered "infinite" bans. |
void | setReason (std::string reason) Sets the reason for this ban. |
void | setSource (std::string source) Sets the source of this ban. |
Public Functions Documentation¶
function IpBanEntry¶
function getAddress¶
Gets the banned IP address.
Returns:
the IP address
The documentation for this class was generated from the following file include/endstone/ban/ip_ban_entry.h