Package io.manebot.user
Interface UserBan
-
- All Known Implementing Classes:
UserBan
public interface UserBan
-
-
Method Summary
Modifier and Type Method Description UsergetBanningUser()Gets the user that created this ban record, null if no reason was supplied.java.util.DategetDate()Gets the date that the ban was created.java.util.DategetEnd()Gets the date that the ban ends, null if there is no end.java.lang.StringgetReason()Gets the reason for the user being banned.UsergetUser()Gets the user that was banned.booleanisPardoned()Finds if the ban has been pardoned.voidpardon()Pardons the ban.
-
-
-
Method Detail
-
getUser
User getUser()
Gets the user that was banned.- Returns:
- banned user instance.
-
getReason
java.lang.String getReason()
Gets the reason for the user being banned.- Returns:
- ban reason.
-
getBanningUser
User getBanningUser()
Gets the user that created this ban record, null if no reason was supplied.- Returns:
- ban reason.
-
getDate
java.util.Date getDate()
Gets the date that the ban was created.- Returns:
- Date instance.
-
getEnd
java.util.Date getEnd()
Gets the date that the ban ends, null if there is no end.- Returns:
- Ban end.
-
isPardoned
boolean isPardoned()
Finds if the ban has been pardoned.- Returns:
- true if the ban was pardoned, false otherwise.
-
pardon
void pardon() throws java.lang.SecurityExceptionPardons the ban.- Throws:
java.lang.SecurityException
-
-