Code: @EventHandler(priority = EventPriority.HIGH) public void onInteract(PlayerInteractEvent event && EntityDamageByEntityEvent event) { i am having problems with adding two events on one line
nbkburns You can't do that ... I would recommend learning basic Java. Basic Java issues: Your use of logical operators is malformed. You can't use them in method declaration You can't use them on two different parameters like that. Read up on these at http://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html You can't have two parameters in a method of the same name. Parameters are separated with commas. Bukkit issues: Your event can only have one event type as a parameter. So you have to separate them into two different events.