Cpq1 ,2 add linguas
This commit is contained in:
@@ -124,6 +124,7 @@ public class MapleClient {
|
||||
private int visibleWorlds;
|
||||
private long lastNpcClick;
|
||||
private long sessionId;
|
||||
private int lingua = 0;
|
||||
|
||||
public MapleClient(MapleAESOFB send, MapleAESOFB receive, IoSession session) {
|
||||
this.send = send;
|
||||
@@ -535,7 +536,7 @@ public class MapleClient {
|
||||
ResultSet rs = null;
|
||||
try {
|
||||
con = DatabaseConnection.getConnection();
|
||||
ps = con.prepareStatement("SELECT id, password, gender, banned, pin, pic, characterslots, tos FROM accounts WHERE name = ?");
|
||||
ps = con.prepareStatement("SELECT id, password, gender, banned, pin, pic, characterslots, tos, lingua FROM accounts WHERE name = ?");
|
||||
ps.setString(1, login);
|
||||
rs = ps.executeQuery();
|
||||
if (rs.next()) {
|
||||
@@ -546,6 +547,7 @@ public class MapleClient {
|
||||
pic = rs.getString("pic");
|
||||
gender = rs.getByte("gender");
|
||||
characterSlots = rs.getByte("characterslots");
|
||||
lingua = rs.getInt("lingua");
|
||||
String passhash = rs.getString("password");
|
||||
byte tos = rs.getByte("tos");
|
||||
|
||||
@@ -1528,4 +1530,12 @@ public class MapleClient {
|
||||
public boolean canBypassPic() {
|
||||
return MapleLoginBypassCoordinator.getInstance().canLoginBypass(getNibbleHWID(), accId, true);
|
||||
}
|
||||
|
||||
public int getLingua() {
|
||||
return lingua;
|
||||
}
|
||||
|
||||
public void setLingua(int lingua) {
|
||||
this.lingua = lingua;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user