Crop Trampling

Discussion in 'Plugin Development' started by Ziden, Oct 13, 2011.

Thread Status:
Not open for further replies.
  1. Offline

    Ziden

    Heya ;D

    Im tryng to disable crop trampling inside a plugin, but i cant find listeners for it, how could i possibly disable it ?

    Thanx for the help !
     
  2. Im pretty sure its the BlockFade event.
     
  3. Offline

    Kaikz

    Or you could just put fences under your farmland. That stops trampling.
     
  4. Offline

    Ziden

    Got it, searching @ worldguard source code

    for whos intrested on it: (well, its kind of a stupid thing)

    public void onEntityInteract(EntityInteractEvent event) {
    if (event.getBlock().getType() == Material.SOIL && event.getEntity() instanceof Creature)
    event.setCancelled(true);
    }
     
    Theztc, devilquak, hawkfalcon and 2 others like this.
  5. Offline

    andrew112000

    It doesn't anymore
     
  6. Offline

    Kaikz

    No shit, this was posted six months ago.
     
  7. I was also looking for this, gived post a like
     
Thread Status:
Not open for further replies.

Share This Page