remove stats system
improve operations and make them extendable more easily and let other plugins add operations, like requirements move requirements/operations out of ranks class as they will be used in prestiges
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package sh.okx.rankup.requirements;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public abstract class ReducerOperation extends Operation {
|
||||
public abstract boolean check(boolean a, boolean b);
|
||||
|
||||
@Override
|
||||
public boolean check(List<Boolean> booleans) {
|
||||
return booleans.stream().reduce(this::check).orElse(true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user