How to check if a player has a specific kit

Discussion in 'Plugin Development' started by Taiigaa, Jul 2, 2021.

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


    Hello, first of all I want to say that my English is not very good so please apologize.
    So I would like to check in my enum which kit the player has chosen
    for my FFA plugin. And if the player when he kills another player has the soup kit then he has 2 soup otherwise he has 1 golden apple. I tried to make a method but without finding too much. Would someone help me?

    PlayerDeathListener and my enum :

    Attached Files:

  2. Offline


    @Taiigaa You never initialize "currentstatus," so unless you pass null to the method, it will always be false.
Thread Status:
Not open for further replies.

Share This Page