Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Check where an event gets cancelled

Comments in 'Plugin Development' started by AppPhil, Oct 17, 2015.

  1. AppPhil
    Offline

    AppPhil Active Member

    Joined:
    Oct 3, 2015
    Posts:
    54
    Hey there,

    I didn't changed something to my BlockPlaceEvents but now I am not able to build anymore. How can I check where and why the block placing gets blocked?
  2. CavinMiana
    Offline

    CavinMiana Active Member

    Joined:
    Aug 26, 2015
    Posts:
    101
    Minecraft User:
    CavinMiana
    So you did not do
    $event->setCancelled(true);
    ??
    AppPhil likes this.
  3. zombie_Power
    Offline

    zombie_Power Active Member

    Joined:
    Sep 7, 2015
    Posts:
    239
    Minecraft User:
    Zombie_Power
    true is not necessary, you can also do
    PHP:
    $event->setCancelled(); 
  4. CavinMiana
    Offline

    CavinMiana Active Member

    Joined:
    Aug 26, 2015
    Posts:
    101
    Minecraft User:
    CavinMiana
    Yah but I like to put it in so he can understand
    zombie_Power likes this.

Share This Page

Advertisement