imtiax 0 #1 Posted November 26, 2011 Does anyone know the list of user rights for Dementhium 639 SQL? userGroup 6 = Admin Anyone know the rest. Share this post Link to post Share on other sites
0 hellman2741 0 #2 Posted November 26, 2011 Can you seriously try figuring these things out for yourself? There's like 7 threads in help on the first fucking page created by you. Try searching in your files. src.org.dementhium.mysql.PlayerLoader AquireRights() Share this post Link to post Share on other sites
0 imtiax 0 #3 Posted November 26, 2011 (edited) The default usergroup for a new account is 2. Which is normal players. How is UserGroup 18 Elite Donator? Does the Case Number refer to the userGroup in the Database? [code] try { sql = database.executeQuery("SELECT usergroup FROM " + PLAYER_TABLE + " WHERE username='" + def.getName() + "' LIMIT 1"); if (sql.next()) { int usergroup = sql.getInt("usergroup"); switch (usergroup) { case 6: def.setRights(2); break; case 5: case 19: def.setRights(1); break; case 16://Respected Donor def.setDonor(1); break; case 17://Grand Donor def.setDonor(2); break; case 18://Elite Donor def.setDonor(3); break; } } } catch (SQLException e) { e.printStackTrace(); } finally { if (sql != null) { close(sql); } sql = null; }[/code] Edited November 26, 2011 by imtiax Share this post Link to post Share on other sites
userGroup 6 = Admin
Anyone know the rest.
Share this post
Link to post
Share on other sites