@@ -0,0 +1,1010 @@
+package com.ttaylorr.uhc.pvp.features.core;%0A%0Aimport org.bukkit.Material;%0Aimport org.bukkit.event.EventHandler;%0Aimport org.bukkit.event.player.PlayerTeleportEvent;%0Aimport org.bukkit.event.player.PlayerTeleportEvent.TeleportCause;%0Aimport org.bukkit.inventory.ItemStack;%0A%0Aimport com.ttaylorr.uhc.pvp.features.PVPFeature;%0A%0Apublic class EnderpearlFeature extends PVPFeature %7B%0A%0A%09private double MAX_HEIGHT;%0A%09private boolean GIVE_BACK_PEARL;%0A%0A%09public EnderpearlFeature(boolean enabled, double maxHeight, boolean giveBack) %7B%0A%09%09super(%22ENDERPERAL%22, %22Limits the height of thrown enderpearls%22, enabled);%0A%09%09%0A%09%09this.MAX_HEIGHT = maxHeight;%0A%09%09this.GIVE_BACK_PEARL = giveBack;%0A%09%7D%0A%0A%09@EventHandler%0A%09public void onEnderPearlThrow(PlayerTeleportEvent event) %7B%0A%09%09if(event.getCause() != TeleportCause.ENDER_PEARL)%0A%09%09%09return;%0A%09%09%0A%09%09if(event.getTo().getY() %3C MAX_HEIGHT)%0A%09%09%09return;%0A%09%09%0A%09%09if(GIVE_BACK_PEARL) %7B%0A%09%09%09event.getPlayer().getInventory().addItem(new ItemStack(Material.ENDER_PEARL, 1));%0A%09%09%7D%0A%09%09%0A%09%09event.setCancelled(true);%0A%09%7D%0A%09%0A%7D%0A

Add EnderpearlFeature