No Ender Eye

Discussion in 'Archived: Plugin Requests' started by ImpulsiveVenom, Feb 23, 2013.

  1. Offline

    ImpulsiveVenom

    Is there such plugin that can stop the Throwing of Ender Eyes?
     
  2. Offline

    StyL_TwisT

    Anyone who wants to make this.
    Code:java
    1. @EventHandler
    2. public void onPlayerInteract(PlayerInteractEvent event)
    3. Player player = event.getPlayer();
    4. player.getInventory().getItemInHand().getType().equals(Material.ENDER_EYE){
    5. event.onRightClick(Material.AIR){
    6. event.setCancelled(true);
     
  3. Offline

    wlan222

Share This Page