Class ServerAggregateQueries
java.lang.Object
com.djrapitops.plan.storage.database.queries.ServerAggregateQueries
Static method class for queries that count how many entries of particular kinds there are for a server.
-
Method Summary
Modifier and TypeMethodDescriptionCount how many users are in the Plan database.serverUserCount(ServerUUID serverUUID)
Count how many users are on a server in the network.static Query<Map<ServerUUID,Integer>>
Count how many users are on each server in the network.
-
Method Details
-
baseUserCount
Count how many users are in the Plan database.- Returns:
- Count of base users, all users in a network after Plan installation.
-
serverUserCount
Count how many users are on a server in the network.- Parameters:
serverUUID
- Server UUID of the Plan server.- Returns:
- Count of users registered to that server after Plan installation.
-
serverUserCounts
Count how many users are on each server in the network.Please note that counts can overlap as one user can join multiple servers. Use
baseUserCount()
if you want to count total number of users.- Returns:
- Map: Server UUID - Count of users registered to that server
-