exists this event?

Discussion in 'Plugin Development' started by Xogos1997, Mar 31, 2016.

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

    Xogos1997

    hello, my problem is simple.. exists event like a

    Code:
    public void PlayerChangeItemInHand(EventChangeItemHand event)
    {
    
    }
    
    just say yes/no. thx
     
  2. Offline

    Desle

    PlayerItemHeldEvent

    so no
     
    Xogos1997 likes this.
  3. Offline

    Xogos1997

    k.. thx now i know this event not exists (Kappa) good bye :D
     
  4. Offline

    Dynamus

  5. Offline

    ski23

    Yes it does exist and he was saying it is called:
    PlayerItemHeldEvent
     
  6. Offline

    0verFull

    If you are looking for a event when the player switch item between his two hands, there is the PlayerSwapHandItemsEvent in the Last spigot 1.9
     
  7. Offline

    I Al Istannen

    @Xogos1997
    As @Dynamus mentioned the javadocs are a good place for these things. You may look at the documentation for the Event class. Right at the top is a Section called "Direct Known Subclasses:". There you find all subclasses. You can check the one that seems promising and just repeat. This way you will see every event that exists and can easily tell what to use.
     
Thread Status:
Not open for further replies.

Share This Page