Getting a Player's Ping

Hello!
I’m new to Paper, having moved over from CraftBukkit hours ago. I’m in the process of migrating my plugins, and was wondering how a player’s ping could be accessed. Any help is appreciated!