SimpleAlly Plugin Help!

Discussion in 'Plugin Development' started by Commander9292, Jul 21, 2013.

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

    Commander9292

    I am developing a plugin called SimpleAlly, It's a plugin where you can ally other players and you can not damage them, I can't figure out how to stop the player from taking damage. Eveything I've tried just spams the console in error messages! Any ideas?
     
  2. Offline

    Chinwe

    What error messages, and what are you trying?
    What you'll be wanting to do is listen to EntityDamageByEntityEvent (as well as potion splash and possibly others), checking if both damager and damagee are players, checking if they are allies (possibly using Lists or a HashMap) and cancel the event if they are :>
     
  3. Offline

    foggy34

    hmm, i just finished my Ally plugin. it does what you are asking for.
    send me a pm if you really want help, or if you want a to download my plugin(still trying to make a good description, before uploading it(i need help)).
     
Thread Status:
Not open for further replies.

Share This Page