Stop vines from growing?

Discussion in 'Plugin Development' started by flash110, Aug 1, 2016.

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

    flash110

    Hello guys, I am typing this from my phone because it would not let me sign in on my laptop,
    so it may have less detail than expected. I have been working on some projects with a friend and he was using vines in a build, so like anyone he asked me to make it so vines wouldn't grow. I tried the block spread and grow event, but can't seem to get it to work. :/ does anyone know the issue? I already tried googling it for a while and I do not want to use world guard.
     
  2. Offline

    mine-care

    @flash110 the BlockSpreadEvent will do the trick. What have you tried with it that didnt work?
     
  3. Offline

    FrostedSnowman

    Make sure you check to see if it's vines.

    Code:
    if(event.getSource().getType() == Material.VINE)
    
    You're also doing something wrong then if it doesn't work. (I bet you a damn nickel you didn't register your events).

    Looks to me, this is how WorldGuard does it.
     
  4. Offline

    mine-care

    @FrostedSnowman I thought it would be easily deduced and i didnt have to point that out, but good you did :)
     
Thread Status:
Not open for further replies.

Share This Page