mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-27 16:30:04 +02:00
make PlayerFishEvent cancel afk
This commit is contained in:
@@ -494,4 +494,11 @@ public class EssentialsPlayerListener implements Listener
|
|||||||
user.setInvSee(false);
|
user.setInvSee(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@EventHandler(priority = EventPriority.LOW, ignoreCancelled = true)
|
||||||
|
public void onPlayerFishEvent(final PlayerFishEvent event)
|
||||||
|
{
|
||||||
|
final IUser user = ess.getUserMap().getUser((Player)event.getPlayer());
|
||||||
|
user.updateActivity(true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user