Custom explosions specify the type

Discussion in 'Plugin Development' started by Diemex, Mar 15, 2013.

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

    Diemex

    I was wondering if there is a way to let other plugins know what type of explosion I'm causing. Most protection plugins ignore custom explosions which causes block damage in "protected" areas. So I was thinking I could potentially lable my explosions as creeper/tnt explosions so that protection plugins will block them.

    Other idea I had was to call an Explosion Event and label it a creeper explosion, if the event got cancelled by another plugin I could cancel my "custom" explosion aswell.

    Any ideas how I could go about this?
     
  2. Offline

    Zarkopafilis

    Explosion = Explosion(No matter type)
    You can always break a plugin and tweak it by checking radius and all the characteristics of an explosion and blocking/allowing it!
     
  3. If createExplosion() doesn't trigger the explosion event then you can trigger one manually and check if it was not canceled and get modified values and then do your explosion.
     
Thread Status:
Not open for further replies.

Share This Page