2 events

Discussion in 'Plugin Development' started by nbkburns, Aug 29, 2014.

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

    nbkburns

    Code:
    @EventHandler(priority = EventPriority.HIGH)
        public void onInteract(PlayerInteractEvent event && EntityDamageByEntityEvent event) {
    i am having problems with adding two events on one line
     
  2. Offline

    AoH_Ruthless

    nbkburns
    You can't do that ... I would recommend learning basic Java.

    • Basic Java issues:
    • Bukkit issues:
      • Your event can only have one event type as a parameter. So you have to separate them into two different events.
     
    jimbo8 likes this.
Thread Status:
Not open for further replies.

Share This Page