[AB-xxx] fixed send message action sending for every level change

This commit is contained in:
Sheldan
2024-07-31 00:11:57 +02:00
parent 5b5e4973a7
commit 99bf9a9be0
12 changed files with 201 additions and 25 deletions

View File

@@ -10,7 +10,7 @@ public interface LevelActionListener {
void apply(AUserExperience userExperience, LevelAction levelAction, MemberActionModification container);
boolean shouldExecute(AUserExperience aUserExperience, LevelAction levelAction);
boolean shouldExecute(AUserExperience aUserExperience, Integer oldLevel, LevelAction levelAction);
void prepareAction(LevelAction levelAction);

View File

@@ -12,6 +12,7 @@ import java.util.concurrent.CompletableFuture;
public interface LevelActionService {
CompletableFuture<Void> applyLevelActionsToUser(AUserExperience user);
CompletableFuture<Void> applyLevelActionsToUser(AUserExperience user, Integer oldLevel);
List<String> getAvailableLevelActions();
Optional<LevelActionListener> getLevelActionListenerForName(String name);