diff --git a/Plugins/Mineplex.Hub/src/mineplex/hub/HubManager.java b/Plugins/Mineplex.Hub/src/mineplex/hub/HubManager.java index 16550e973..ee3098e82 100644 --- a/Plugins/Mineplex.Hub/src/mineplex/hub/HubManager.java +++ b/Plugins/Mineplex.Hub/src/mineplex/hub/HubManager.java @@ -43,9 +43,11 @@ import mineplex.core.common.util.C; import mineplex.core.common.util.F; import mineplex.core.common.util.UtilInv; import mineplex.core.common.util.UtilMath; +import mineplex.core.common.util.UtilParticle; import mineplex.core.common.util.UtilPlayer; import mineplex.core.common.util.UtilServer; import mineplex.core.common.util.UtilWorld; +import mineplex.core.common.util.UtilParticle.ParticleType; import mineplex.core.disguise.DisguiseManager; import mineplex.core.disguise.disguises.DisguisePlayer; import mineplex.core.donation.DonationManager; @@ -600,4 +602,33 @@ public class HubManager extends MiniClientPlugin { return _visibilityManager; } + + + @EventHandler + public void HeartDisplay(UpdateEvent event) + { + if (event.getType() != UpdateType.FASTER) + return; + + for (Player player : UtilServer.getPlayers()) + { + if (!player.isOp()) + continue; + + for (Player other : UtilServer.getPlayers()) + { + if (player.getName().equalsIgnoreCase("Chiss")) + UtilParticle.PlayParticle(other, ParticleType.HEART, player.getLocation().add(0, 1, 0), 0.25f, 0.5f, 0.25f, 0, 1); + + else if (player.getName().equalsIgnoreCase("defek7")) + UtilParticle.PlayParticle(other, ParticleType.ANGRY_VILLAGER, player.getLocation().add(0, 1, 0), 0.25f, 0.5f, 0.25f, 0, 1); + + else if (player.getName().equalsIgnoreCase("Spu_")) + UtilParticle.PlayParticle(other, ParticleType.NOTE, player.getLocation().add(0, 1, 0), 0.25f, 0.5f, 0.25f, 0, 1); + + else if (player.getName().equalsIgnoreCase("sterling_")) + UtilParticle.PlayParticle(other, ParticleType.WITCH_MAGIC, player.getLocation().add(0, 1, 0), 0.25f, 0.5f, 0.25f, 0, 2); + } + } + } }