mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-27 14:13:11 +02:00
Use public visibility for event handler methods.
This commit is contained in:
parent
09a963ed49
commit
c2dcc600b5
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user