Friendly Wolves [Formatted]

Discussion in 'Archived: Plugin Requests' started by UltraFaceguy, Jul 28, 2012.

  1. Offline

    UltraFaceguy

    Plugin category: Mech

    Suggested name: FriendlyWolves

    What I want: A plugin that disables wolves from targeting and attacking players, and only players.

    Ideas for commands: None.

    Ideas for permissions: None.

    When I'd like it by: Soonish.

    Additional info: Just drag and drop the jar for this one, nothing to configure.

    Bump

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 27, 2016
  2. Offline

    UltraFaceguy

    Bump. You can't tell me that NOBODY has ever had the issue where one's wolves attack other players because they gave you a baby punch, and your wolves slaughter the player or are slaughtered themselves...
     
  3. Offline

    tsuna25

    UltraFaceguy I'll do it.I'll tag you in this post when I'm done.Shouldn't take that long.
     
  4. Offline

    skore87

    tsuna25, should be as simple as:
    Code:
            pm.registerEvents(new Listener(){
                @EventHandler
                public void onEntityTarget(EntityTargetEvent e){
                    if ( e.getEntity() instanceof Wolf && e.getTarget() instanceof Player){
                        e.setCancelled(true);
                    }
                }
            }, this);
     
  5. Offline

    UltraFaceguy

    Thank you very much ^_^
     
  6. Offline

    tsuna25

    Last edited by a moderator: May 27, 2016
  7. Offline

    UltraFaceguy

Share This Page