Update 3.2

//Changes 3.2://
* Fix Password showed in console ( support for Log4J )
* Quit Location will be more precise ( now double instead of int )
* Force command after the /register too
* Close inventory when player try to open one unlogged
* Fix old password supports
* Remove some Magic Values ( 1.7.2+ )
* Fix threads not start correctly
* Add a recall email adding message
* Fix catpcha messages
* Add multilines messages ( add &n )
* Fix some inventory problem
* Fix some events problem
* Call login event after /register
This commit is contained in:
Xephi
2014-01-07 02:59:08 +01:00
parent 93a320c8ae
commit 5127d5e70a
32 changed files with 329 additions and 193 deletions
+16 -16
View File
@@ -9,9 +9,9 @@ public class PlayerAuth {
private String hash = "";
private String ip = "198.18.0.1";
private long lastLogin = 0;
private int x = 0;
private int y = 0;
private int z = 0;
private double x = 0;
private double y = 0;
private double z = 0;
private String world = "world";
private String salt = "";
private String vBhash = null;
@@ -28,7 +28,7 @@ public class PlayerAuth {
this.realName = realName;
}
public PlayerAuth(String nickname, int x, int y, int z, String world) {
public PlayerAuth(String nickname, double x, double y, double z, String world) {
this.nickname = nickname;
this.x = x;
this.y = y;
@@ -36,7 +36,7 @@ public class PlayerAuth {
this.world = world;
}
public PlayerAuth(String nickname, String hash, String ip, long lastLogin, int x, int y, int z, String world, String email, String realName) {
public PlayerAuth(String nickname, String hash, String ip, long lastLogin, double x, double y, double z, String world, String email, String realName) {
this.nickname = nickname;
this.hash = hash;
this.ip = ip;
@@ -49,7 +49,7 @@ public class PlayerAuth {
this.realName = realName;
}
public PlayerAuth(String nickname, String hash, String salt, int groupId, String ip, long lastLogin, int x, int y, int z, String world, String email, String realName) {
public PlayerAuth(String nickname, String hash, String salt, int groupId, String ip, long lastLogin, double x, double y, double z, String world, String email, String realName) {
this.nickname = nickname;
this.hash = hash;
this.ip = ip;
@@ -83,7 +83,7 @@ public class PlayerAuth {
this.realName = realName;
}
public PlayerAuth(String nickname, String hash, String salt, String ip, long lastLogin, int x, int y, int z, String world, String email, String realName) {
public PlayerAuth(String nickname, String hash, String salt, String ip, long lastLogin, double x, double y, double z, String world, String email, String realName) {
this.nickname = nickname;
this.hash = hash;
this.ip = ip;
@@ -123,26 +123,26 @@ public class PlayerAuth {
return groupId;
}
public int getQuitLocX() {
public double getQuitLocX() {
return x;
}
public int getQuitLocY() {
public double getQuitLocY() {
return y;
}
public int getQuitLocZ() {
public double getQuitLocZ() {
return z;
}
public String getEmail() {
return email;
}
public void setQuitLocX(int x) {
this.x = x;
public void setQuitLocX(double d) {
this.x = d;
}
public void setQuitLocY(int y) {
this.y = y;
public void setQuitLocY(double d) {
this.y = d;
}
public void setQuitLocZ(int z) {
this.z = z;
public void setQuitLocZ(double d) {
this.z = d;
}
public long getLastLogin() {
return lastLogin;