Jump to content
  • 0
Sign in to follow this  
imtiax

Dementhium SQL User Rights

Question

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

2 answers to this question

Recommended Posts

  • 0
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
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 by imtiax

Share this post


Link to post
Share on other sites
Sign in to follow this  

×