@Singleton public class BukkitSensor extends java.lang.Object implements ServerSensor<org.bukkit.World>
Constructor and Description |
---|
BukkitSensor(Plan plugin) |
Modifier and Type | Method and Description |
---|---|
int |
getChunkCount(org.bukkit.World world) |
int |
getEntityCount(org.bukkit.World world) |
int |
getOnlinePlayerCount() |
double |
getTPS() |
java.lang.Iterable<org.bukkit.World> |
getWorlds()
Get the worlds running on the server platform.
|
boolean |
supportsDirectTPS()
Check if server platform provides TPS calculation.
|
@Inject public BukkitSensor(Plan plugin)
public boolean supportsDirectTPS()
ServerSensor
supportsDirectTPS
in interface ServerSensor<org.bukkit.World>
public double getTPS()
getTPS
in interface ServerSensor<org.bukkit.World>
public int getChunkCount(org.bukkit.World world)
getChunkCount
in interface ServerSensor<org.bukkit.World>
public int getEntityCount(org.bukkit.World world)
getEntityCount
in interface ServerSensor<org.bukkit.World>
public int getOnlinePlayerCount()
getOnlinePlayerCount
in interface ServerSensor<org.bukkit.World>
public java.lang.Iterable<org.bukkit.World> getWorlds()
ServerSensor
getWorlds
in interface ServerSensor<org.bukkit.World>