Permalink
Browse files

Support for newer versions of Effectlib

  • Loading branch information...
TheComputerGeek2 committed Aug 10, 2018
1 parent 0c33970 commit e53980abb08645c93dbbe2aace882971a9446e10
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/com/nisovin/magicspells/MagicSpells.java
@@ -28,6 +28,7 @@
import com.nisovin.magicspells.util.compat.CompatBasics;
import com.nisovin.magicspells.util.compat.EventUtil;
import com.nisovin.magicspells.volatilecode.VolatileCodeEnabled_1_12_R1;
import de.slikey.effectlib.util.ParticleEffect;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Material;
@@ -203,6 +204,13 @@ void load() {
effectManager = new EffectManager(this);
effectManager.enableDebug(debug);
try {
Class<?> particleEffectClass = ParticleEffect.class;
Method setEffectManagerMethod = particleEffectClass.getMethod("setEffectManager", EffectManager.class);
setEffectManagerMethod.invoke(null, effectManager);
} catch (Exception ignored) {
// No-op
}
// Create storage stuff
spells = new HashMap<>();

0 comments on commit e53980a

Please sign in to comment.