mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Actually setup requirements
This commit is contained in:
parent
05fbb76e79
commit
0be71908e7
@ -235,7 +235,9 @@ public class GameRule<V> {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
requirements.add((Requirement) constructor.newInstance(api));
|
Requirement requirement = (Requirement) constructor.newInstance(api);
|
||||||
|
requirement.setup(section);
|
||||||
|
requirements.add(requirement);
|
||||||
} catch (NoSuchMethodException | SecurityException | InstantiationException | IllegalAccessException
|
} catch (NoSuchMethodException | SecurityException | InstantiationException | IllegalAccessException
|
||||||
| IllegalArgumentException | InvocationTargetException exception) {
|
| IllegalArgumentException | InvocationTargetException exception) {
|
||||||
MessageUtil.log(api, "&4Requirement \"" + key + "\" is not implemented properly with a (DungeonsAPI) constructor.");
|
MessageUtil.log(api, "&4Requirement \"" + key + "\" is not implemented properly with a (DungeonsAPI) constructor.");
|
||||||
|
Loading…
Reference in New Issue
Block a user