Use public visibility for event handler methods.

This commit is contained in:
asofold 2018-01-20 00:31:16 +01:00
parent 09a963ed49
commit c2dcc600b5
2 changed files with 4 additions and 3 deletions

View File

@ -699,7 +699,7 @@ public class FightListener extends CheckListener implements JoinLeaveListener{
* 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) {
@ -717,8 +717,9 @@ public class FightListener extends CheckListener implements JoinLeaveListener{
* 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;
}

View File

@ -294,7 +294,7 @@ public class InventoryListener extends CheckListener implements JoinLeaveListen
*/
@EventHandler(
ignoreCancelled = true, priority = EventPriority.LOWEST)
protected void onPlayerDropItem(final PlayerDropItemEvent event) {
public void onPlayerDropItem(final PlayerDropItemEvent event) {
final Player player = event.getPlayer();