Word of advice, you should be storing UUIDs instead of Usernames (unless you already do store UUIDs in the SQL database). You could do this in two ways: 1. Have a table with the columns: uuid, username, kills Then you could still use the same statement. 2. Have a table with the columns: uuid, kills Then you'd have to use a name fetcher to get the username by UUID. Another note, please code to the interface not an implementation. Code: static Map<Integer, String> rang = new HashMap<Integer, String>();