Class NukkitPingCounter
java.lang.Object
net.playeranalytics.plugin.scheduling.PluginRunnable
com.djrapitops.plan.TaskSystem.Task
com.djrapitops.plan.gathering.timed.NukkitPingCounter
- All Implemented Interfaces:
cn.nukkit.event.Listener
,Runnable
@Singleton
public class NukkitPingCounter
extends TaskSystem.Task
implements cn.nukkit.event.Listener
Task that handles player ping calculation on Nukkit based servers.
-
Constructor Summary
ConstructorDescriptionNukkitPingCounter
(net.playeranalytics.plugin.server.Listeners listeners, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
clear()
void
onPlayerJoin
(cn.nukkit.event.player.PlayerJoinEvent joinEvent) void
onPlayerQuit
(cn.nukkit.event.player.PlayerQuitEvent quitEvent) void
register
(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory) void
removePlayer
(cn.nukkit.Player player) void
run()
Methods inherited from class net.playeranalytics.plugin.scheduling.PluginRunnable
cancel
-
Constructor Details
-
NukkitPingCounter
@Inject public NukkitPingCounter(net.playeranalytics.plugin.server.Listeners listeners, PlanConfig config, DBSystem dbSystem, ServerInfo serverInfo)
-
-
Method Details
-
run
public void run() -
register
public void register(net.playeranalytics.plugin.scheduling.RunnableFactory runnableFactory) - Specified by:
register
in classTaskSystem.Task
-
addPlayer
-
removePlayer
public void removePlayer(cn.nukkit.Player player) -
onPlayerJoin
public void onPlayerJoin(cn.nukkit.event.player.PlayerJoinEvent joinEvent) -
onPlayerQuit
public void onPlayerQuit(cn.nukkit.event.player.PlayerQuitEvent quitEvent) -
clear
public void clear()
-