add count to toptime

This commit is contained in:
Chris 2017-02-23 21:03:01 +01:00
parent 13da8be2af
commit 8b54357afc
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ public class SQLLite implements IDB
}
}
public List<String[]> getTopPlayers()
public List<String[]> getTopPlayers(int _count)
{
List<String[]> _returnList = new ArrayList<String[]>();
@ -81,7 +81,7 @@ public class SQLLite implements IDB
if(m_connection != null)
{
Statement _statement = m_connection.createStatement();
ResultSet _results = _statement.executeQuery("SELECT * FROM playtime ORDER BY playtime DESC LIMIT 5");
ResultSet _results = _statement.executeQuery("SELECT * FROM playtime ORDER BY playtime DESC LIMIT " + _count);
while (_results.next())
{