mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-02-05 06:51:45 +01:00
Removed SessionsTable#getSessionCount(UUID uuid) - not used
This commit is contained in:
parent
b9cf17eaad
commit
28df900c0a
@ -255,16 +255,6 @@ public class SessionsTable extends Table {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Used to get total Session count of a Player on THIS server.
|
||||
*
|
||||
* @param uuid UUID of the player.
|
||||
* @return How many sessions player has. 0 if player or server not found.
|
||||
*/
|
||||
public int getSessionCount(UUID uuid) {
|
||||
return getSessionCount(uuid, 0L);
|
||||
}
|
||||
|
||||
/**
|
||||
* Used to get total Session count of a Player on THIS server after a given epoch ms.
|
||||
*
|
||||
|
@ -362,8 +362,8 @@ public abstract class CommonDBTest {
|
||||
assertEquals(expectedLength, playtimeOfServer);
|
||||
assertEquals(0L, sessionsTable.getPlaytimeOfServer(serverUUID, 30000L));
|
||||
|
||||
assertEquals(1, sessionsTable.getSessionCount(playerUUID));
|
||||
assertEquals(0, sessionsTable.getSessionCount(playerUUID, 30000L));
|
||||
assertEquals(1, sessionsTable.getSessionCount(playerUUID, serverUUID, 0L));
|
||||
assertEquals(0, sessionsTable.getSessionCount(playerUUID, serverUUID, 30000L));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user