Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int getUserType(String playerName)
- {
- String query = "SELECT usertype FROM users WHERE username = '" + playerName + "';";
- int usertype = 0;
- try
- {
- String[][] returned = enigma.returnedDataBase(query, 1);
- usertype = Integer.parseInt(returned[0][0]);
- }
- catch (Exception e)
- {
- System.out.println("DB Error: " + e.getLocalizedMessage());
- }
- return usertype;
- }
Add Comment
Please, Sign In to add comment