mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-27 09:00:28 +08:00
Removed SessionsTable#getPlaytime(UUID uuid, long afterDate) - not used
This commit is contained in:
parent
4ecdc38f0a
commit
5ad767c83c
@ -190,17 +190,6 @@ public class SessionsTable extends Table {
|
||||
return getPlaytime(uuid, getServerUUID());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Playtime of a Player after Epoch ms on THIS server.
|
||||
*
|
||||
* @param uuid UUID of the player.
|
||||
* @param afterDate Epoch ms (Playtime after this date is calculated)
|
||||
* @return Milliseconds played on THIS server. 0 if player or server not found.
|
||||
*/
|
||||
public long getPlaytime(UUID uuid, long afterDate) {
|
||||
return getPlaytime(uuid, getServerUUID(), afterDate);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Total Playtime of a Player on a server.
|
||||
*
|
||||
|
@ -356,7 +356,7 @@ public abstract class CommonDBTest {
|
||||
commitTest();
|
||||
|
||||
assertEquals(expectedLength, sessionsTable.getPlaytime(playerUUID));
|
||||
assertEquals(0L, sessionsTable.getPlaytime(playerUUID, 30000L));
|
||||
assertEquals(0L, sessionsTable.getPlaytime(playerUUID, serverUUID, 30000L));
|
||||
|
||||
long playtimeOfServer = sessionsTable.getPlaytimeOfServer(serverUUID);
|
||||
assertEquals(expectedLength, playtimeOfServer);
|
||||
|
Loading…
Reference in New Issue
Block a user