Interface Reason
- All Known Implementing Classes:
ReasonProvider
The Reason interface provides methods to give Reason for the ban/mute system.
-
Method Details
-
exists
boolean exists(int id) Checks if a reason with the specified ID exists.- Parameters:
id- The ID of the reason to check.- Returns:
- True if a reason with the specified ID exists, false otherwise.
-
add
Adds a reason.- Parameters:
reason- The reason to be added.
-
remove
void remove(int id) Removes a reason.- Parameters:
id- The ID of the reason to be removed.
-
update
Updates the reason with the specified ID.- Parameters:
id- The ID of the reason to update.reason- The updated reason.
-
get
Retrieves a reason by its ID.- Parameters:
id- The ID of the reason to retrieve.- Returns:
- The reason associated with the specified ID, represented as a string.
-