Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArmourEquipEvent - Improvment #3

Open
Bedlessdeus opened this issue Jun 28, 2023 · 0 comments
Open

ArmourEquipEvent - Improvment #3

Bedlessdeus opened this issue Jun 28, 2023 · 0 comments

Comments

@Bedlessdeus
Copy link

Add an Enum that tells you what type of event it is

public enum ACTION {
    EQUIP,
    UNEQUIP;
}

@EventHandler
public void onArmourEquipEvent(ArmourEquipEvent event){
   if (event.ACTION != UNEQUIP) return;
}

You could also add an ArmourUnequipEvent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant