Package com.djrapitops.plan.gathering
Class VelocitySensor
- java.lang.Object
-
- com.djrapitops.plan.gathering.VelocitySensor
-
- All Implemented Interfaces:
ServerSensor<java.lang.Object>
@Singleton public class VelocitySensor extends java.lang.Object implements ServerSensor<java.lang.Object>
-
-
Constructor Summary
Constructors Constructor Description VelocitySensor(PlanVelocity plugin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOnlinePlayerCount()
boolean
supportsDirectTPS()
Check if server platform provides TPS calculation.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.djrapitops.plan.gathering.ServerSensor
getChunkCount, getEntityCount, getTPS, getWorlds
-
-
-
-
Constructor Detail
-
VelocitySensor
@Inject public VelocitySensor(PlanVelocity plugin)
-
-
Method Detail
-
supportsDirectTPS
public boolean supportsDirectTPS()
Description copied from interface:ServerSensor
Check if server platform provides TPS calculation.- Specified by:
supportsDirectTPS
in interfaceServerSensor<java.lang.Object>
- Returns:
- false if the server doesn't count TPS.
-
getOnlinePlayerCount
public int getOnlinePlayerCount()
- Specified by:
getOnlinePlayerCount
in interfaceServerSensor<java.lang.Object>
-
-