diff --git a/Plugins/Core/.classpath b/Plugins/Core/.classpath index 715fc22fd..35c355214 100644 --- a/Plugins/Core/.classpath +++ b/Plugins/Core/.classpath @@ -4,10 +4,10 @@ - + diff --git a/Plugins/Mineplex.Core/.externalToolBuilders/asdf.launch b/Plugins/Mineplex.Core/.externalToolBuilders/asdf.launch new file mode 100644 index 000000000..0841fa6ee --- /dev/null +++ b/Plugins/Mineplex.Core/.externalToolBuilders/asdf.launch @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/Plugins/Mineplex.Core/.project b/Plugins/Mineplex.Core/.project index c69462413..62da8a3cf 100644 --- a/Plugins/Mineplex.Core/.project +++ b/Plugins/Mineplex.Core/.project @@ -16,7 +16,7 @@ LaunchConfigHandle - <project>/.externalToolBuilders/Core.launch + <project>/.externalToolBuilders/asdf.launch diff --git a/Plugins/Mineplex.Hub/.classpath b/Plugins/Mineplex.Hub/.classpath index 72429f1b6..4f837287b 100644 --- a/Plugins/Mineplex.Hub/.classpath +++ b/Plugins/Mineplex.Hub/.classpath @@ -5,11 +5,11 @@ - + diff --git a/Plugins/Mineplex.Hub/src/mineplex/hub/mount/types/Dragon.java b/Plugins/Mineplex.Hub/src/mineplex/hub/mount/types/Dragon.java index 0545234e2..5c2ba3e75 100644 --- a/Plugins/Mineplex.Hub/src/mineplex/hub/mount/types/Dragon.java +++ b/Plugins/Mineplex.Hub/src/mineplex/hub/mount/types/Dragon.java @@ -3,11 +3,15 @@ package mineplex.hub.mount.types; import java.util.HashSet; import org.bukkit.Material; +import org.bukkit.entity.Horse; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.entity.EntityTargetEvent; import mineplex.core.common.util.C; +import mineplex.core.common.util.UtilParticle; +import mineplex.core.common.util.UtilServer; +import mineplex.core.common.util.UtilParticle.ParticleType; import mineplex.core.updater.UpdateType; import mineplex.core.updater.event.UpdateEvent; import mineplex.hub.mount.DragonData; @@ -30,6 +34,26 @@ public class Dragon extends DragonMount Material.DRAGON_EGG, (byte)0, -1); + } + + @EventHandler + public void Trail(UpdateEvent event) + { + if (event.getType() == UpdateType.TICK) + { + for (DragonData data : GetActive().values()) + for (Player player : UtilServer.getPlayers()) + { + try + { + UtilParticle.PlayParticle(player, ParticleType.WITCH_MAGIC, data.Dragon.getLocation().add(0, 1, 0), 1f, 1f, 1f, 0f, 20); + } + catch (Exception e) + { + e.printStackTrace(); + } + } + } } @EventHandler diff --git a/Plugins/Nautilus.Game.Core/.classpath b/Plugins/Nautilus.Game.Core/.classpath index f1dec1b2a..047fe522b 100644 --- a/Plugins/Nautilus.Game.Core/.classpath +++ b/Plugins/Nautilus.Game.Core/.classpath @@ -3,12 +3,12 @@ - +