Skip to content

ArmourEquipEvent - Improvment #3

@Bedlessdeus

Description

@Bedlessdeus

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions