Now reloads upgrade templates after adding the MMOCore stats

This commit is contained in:
Aria 2019-09-29 07:00:31 +02:00
parent 52932b8c01
commit 3dee112199

View File

@ -59,6 +59,8 @@ public class MMOCoreHook implements RPGHandler, Listener, DamageHandler {
*/
for (PlayerAttribute attribute : MMOCore.plugin.attributeManager.getAll())
MMOItems.plugin.getStats().register("REQUIRED_" + attribute.getId().toUpperCase().replace("-", "_"), new Required_Attribute(attribute));
MMOItems.plugin.getUpgrades().reload();
}
@Override