Skip to content

Commit

Permalink
Use public visibility for event handler methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
asofold committed Jan 19, 2018
1 parent 09a963e commit c2dcc60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Expand Up @@ -699,7 +699,7 @@ private double getKnockBackLevel(final Player player) {
* the event
*/
@EventHandler(priority = EventPriority.MONITOR)
protected void onEntityDeathEvent(final EntityDeathEvent event) {
public void onEntityDeathEvent(final EntityDeathEvent event) {
// Only interested in dying players.
final Entity entity = event.getEntity();
if (entity instanceof Player) {
Expand All @@ -717,8 +717,9 @@ protected void onEntityDeathEvent(final EntityDeathEvent event) {
* the event
*/
@EventHandler(priority = EventPriority.MONITOR)
protected void onPlayerAnimation(final PlayerAnimationEvent event) {
public void onPlayerAnimation(final PlayerAnimationEvent event) {
// Set a flag telling us that the arm has been swung.
// TODO: Packet inversion ~ tackle via time stamp (tick) + counter (allow first).
FightData.getData(event.getPlayer()).noSwingArmSwung = true;
}

Expand Down
Expand Up @@ -294,7 +294,7 @@ private void addInventory(final Player player, final Inventory inventory, final
*/
@EventHandler(
ignoreCancelled = true, priority = EventPriority.LOWEST)
protected void onPlayerDropItem(final PlayerDropItemEvent event) {
public void onPlayerDropItem(final PlayerDropItemEvent event) {

final Player player = event.getPlayer();

Expand Down

0 comments on commit c2dcc60

Please sign in to comment.