I recently make a plugin that shoots. But i want it only for mobs, PvP is off but it stills hit players. PLUGIN: http://pastebin.com/eK4HfVEU And a want a scoreboard that you can set on/off for kills that players make with snowballcannon
@ycraft1 Since you know how to check if the damager is a player, just check if the damaged entity is not an instance of a player.
Use the EntityDamageByEntityEvent, check if e.getDamager instanceof Player and cancel the event if it is.
Ah, thanks m8 for that answer @Xerox262 That only make sense for the startup message. But thanks for attention it. I fixed it: import org.bukkit.ChatColor; EDIT by Moderator: merged posts, please use the edit button instead of double posting.