mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-01-26 05:44:42 +00:00
[AB-71] adding very simple anti raid feature to automatically mute member who mass mention users
This commit is contained in:
@@ -46,7 +46,9 @@ public class HasLevelCondition implements SystemCondition {
|
||||
log.info("Evaluating has level condition for user {} in server {} with level {}.",
|
||||
userInServer.getUserReference().getId(), userInServer.getServerReference().getId(), level);
|
||||
AUserExperience user = userExperienceManagementService.findUserInServer(userInServer);
|
||||
return user.getCurrentLevel() != null && user.getCurrentLevel().getLevel() >= level;
|
||||
boolean conditionResult = user.getCurrentLevel() != null && user.getCurrentLevel().getLevel() >= level;
|
||||
log.info("Condition evaluated to {}", conditionResult);
|
||||
return conditionResult;
|
||||
}
|
||||
log.info("No user in server object was found. Evaluating to false.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user