Removed horse cooldown
This commit is contained in:
parent
3469b890d4
commit
401738f19a
@ -12,7 +12,6 @@ import org.bukkit.entity.Horse;
|
||||
import org.bukkit.entity.Item;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.entity.HorseJumpEvent;
|
||||
import org.bukkit.event.player.PlayerPickupItemEvent;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
@ -23,7 +22,6 @@ import mineplex.core.mount.HorseMount;
|
||||
import mineplex.core.mount.MountManager;
|
||||
import mineplex.core.mount.SingleEntityMountData;
|
||||
import mineplex.core.particleeffects.RainbowTrailEffect;
|
||||
import mineplex.core.recharge.Recharge;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
|
||||
@ -67,24 +65,6 @@ public class MountStPatricksHorse extends HorseMount
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void horseJump(HorseJumpEvent event)
|
||||
{
|
||||
for (SingleEntityMountData<Horse> horseData : _trailMap.keySet())
|
||||
{
|
||||
if (horseData.getEntity().equals(event.getEntity()))
|
||||
{
|
||||
if (!Recharge.Instance.use(horseData.getOwner(), getName(), 2500, false, false, "Cosmetics"))
|
||||
{
|
||||
event.setPower(0f);
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
_trailMap.get(horseData).setJumping(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onItemPickup(PlayerPickupItemEvent event)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user