diff options
author | Chris Ward <chris@chrisgward.com> | 2013-01-09 00:00:12 +1100 |
---|---|---|
committer | Chris Ward <chris@chrisgward.com> | 2013-01-09 00:00:12 +1100 |
commit | 55877e1d1abe22c4ddf1fed59e7827685cb073da (patch) | |
tree | 2d07d2e626c66d78b857ba60cefc3b3aad7c06c8 | |
parent | bd4247b342d82ea5dd3f2e522b72df87fe312281 (diff) | |
download | Essentials-55877e1d1abe22c4ddf1fed59e7827685cb073da.tar Essentials-55877e1d1abe22c4ddf1fed59e7827685cb073da.tar.gz Essentials-55877e1d1abe22c4ddf1fed59e7827685cb073da.tar.lz Essentials-55877e1d1abe22c4ddf1fed59e7827685cb073da.tar.xz Essentials-55877e1d1abe22c4ddf1fed59e7827685cb073da.zip |
Fix Spawns/Jail loading
3faedec602757e89db74512382cde93c1a0ab70d
-rw-r--r-- | Essentials/src/net/ess3/storage/BukkitConstructor.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Essentials/src/net/ess3/storage/BukkitConstructor.java b/Essentials/src/net/ess3/storage/BukkitConstructor.java index 819fe4b81..6d35c1bd5 100644 --- a/Essentials/src/net/ess3/storage/BukkitConstructor.java +++ b/Essentials/src/net/ess3/storage/BukkitConstructor.java @@ -13,12 +13,13 @@ import net.ess3.Essentials; import net.ess3.api.IPlugin; import org.yaml.snakeyaml.TypeDescription; import org.yaml.snakeyaml.constructor.Constructor; +import org.yaml.snakeyaml.constructor.CustomClassLoaderConstructor; import org.yaml.snakeyaml.error.YAMLException; import org.yaml.snakeyaml.introspector.Property; import org.yaml.snakeyaml.nodes.*; -public class BukkitConstructor extends Constructor +public class BukkitConstructor extends CustomClassLoaderConstructor { private final transient Pattern NUMPATTERN = Pattern.compile("\\d+"); private final transient Pattern DATAPATTERN = Pattern.compile("[:+',;.]"); @@ -27,7 +28,7 @@ public class BukkitConstructor extends Constructor public BukkitConstructor(final Class<?> clazz, final IPlugin plugin) { - super(clazz); + super(clazz, plugin.getClass().getClassLoader()); this.plugin = plugin; yamlClassConstructors.put(NodeId.scalar, new ConstructBukkitScalar()); yamlClassConstructors.put(NodeId.mapping, new ConstructBukkitMapping()); |