Add soft dependency for Multiverse compatibility

If ES gets enabled before Multiverse does, ESSystems in worlds other
than the default will misbehave, because Multiverse hasn't loaded their
worlds yet. This means getWorld() returns null for those worlds and the
Location baked into the ESSystem is wrong.

Adding a soft dependency on MV-Core ensures that ES gets enabled after
MV, and thus, after all the game worlds are loaded.
This commit is contained in:
B. Kelly 2020-07-17 14:09:51 -04:00 committed by B. Kelly
parent 77a426a85b
commit fdad6e099f
2 changed files with 3 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<groupId>net.seanomik</groupId>
<artifactId>energeticstorage</artifactId>
<version>0.2-SNAPSHOT</version>
<version>0.2.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>EnergeticStorage</name>

View File

@ -3,6 +3,7 @@ version: ${project.version}
main: net.seanomik.energeticstorage.EnergeticStorage
api-version: 1.15
authors: [SeanOMik]
softdepend: [Multiverse-Core]
commands:
esgive:
aliases: [egive]
@ -42,4 +43,4 @@ permissions:
default: op
energeticstorage.system.destroy.untrusted:
description: Permission for destroying an ES System that the player is not trusted in.
default: op
default: op