mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-03-07 17:28:03 +08:00
Removed SessionsTable#getPlaytime(UUID uuid) - not used
This commit is contained in:
parent
5ad767c83c
commit
969b305526
@ -180,16 +180,6 @@ public class SessionsTable extends Table {
|
||||
return sessions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Total Playtime of a Player on THIS server.
|
||||
*
|
||||
* @param uuid UUID of the player.
|
||||
* @return Milliseconds played on THIS server. 0 if player or server not found.
|
||||
*/
|
||||
public long getPlaytime(UUID uuid) {
|
||||
return getPlaytime(uuid, getServerUUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Total Playtime of a Player on a server.
|
||||
*
|
||||
|
@ -355,7 +355,7 @@ public abstract class CommonDBTest {
|
||||
|
||||
commitTest();
|
||||
|
||||
assertEquals(expectedLength, sessionsTable.getPlaytime(playerUUID));
|
||||
assertEquals(expectedLength, sessionsTable.getPlaytime(playerUUID, serverUUID, 0L));
|
||||
assertEquals(0L, sessionsTable.getPlaytime(playerUUID, serverUUID, 30000L));
|
||||
|
||||
long playtimeOfServer = sessionsTable.getPlaytimeOfServer(serverUUID);
|
||||
|
Loading…
Reference in New Issue
Block a user