mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 09:06:46 +01:00
Removed unused variable
This commit is contained in:
parent
c382c95d24
commit
3448733834
@ -53,7 +53,6 @@ public class PlayerProfile {
|
|||||||
private int respawnATS;
|
private int respawnATS;
|
||||||
|
|
||||||
/* mySQL STUFF */
|
/* mySQL STUFF */
|
||||||
private int lastlogin;
|
|
||||||
private int userid;
|
private int userid;
|
||||||
|
|
||||||
HashMap<SkillType, Integer> skills = new HashMap<SkillType, Integer>(); //Skills and Levels
|
HashMap<SkillType, Integer> skills = new HashMap<SkillType, Integer>(); //Skills and Levels
|
||||||
@ -69,7 +68,6 @@ public class PlayerProfile {
|
|||||||
hud = SpoutConfig.getInstance().defaulthud;
|
hud = SpoutConfig.getInstance().defaulthud;
|
||||||
this.player = player;
|
this.player = player;
|
||||||
this.playerName = player.getName();
|
this.playerName = player.getName();
|
||||||
lastlogin = ((Long) (System.currentTimeMillis() / 1000)).intValue();
|
|
||||||
|
|
||||||
party = PartyManager.getInstance().getPlayerParty(playerName);
|
party = PartyManager.getInstance().getPlayerParty(playerName);
|
||||||
|
|
||||||
@ -294,10 +292,10 @@ public class PlayerProfile {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void save() {
|
public void save() {
|
||||||
Long timestamp = System.currentTimeMillis() / 1000; //Convert to seconds
|
Long timestamp = System.currentTimeMillis() / 1000;
|
||||||
|
|
||||||
// if we are using mysql save to database
|
// if we are using mysql save to database
|
||||||
if (Config.getInstance().getUseMySQL()) {
|
if (Config.getInstance().getUseMySQL()) {
|
||||||
|
|
||||||
mcMMO.database.write("UPDATE " + Config.getInstance().getMySQLTablePrefix() + "huds SET hudtype = '" + hud.toString() + "' WHERE user_id = " + userid);
|
mcMMO.database.write("UPDATE " + Config.getInstance().getMySQLTablePrefix() + "huds SET hudtype = '" + hud.toString() + "' WHERE user_id = " + userid);
|
||||||
mcMMO.database.write("UPDATE " + Config.getInstance().getMySQLTablePrefix() + "users SET lastlogin = " + timestamp.intValue() + " WHERE id = " + userid);
|
mcMMO.database.write("UPDATE " + Config.getInstance().getMySQLTablePrefix() + "users SET lastlogin = " + timestamp.intValue() + " WHERE id = " + userid);
|
||||||
mcMMO.database.write("UPDATE " + Config.getInstance().getMySQLTablePrefix() + "cooldowns SET "
|
mcMMO.database.write("UPDATE " + Config.getInstance().getMySQLTablePrefix() + "cooldowns SET "
|
||||||
@ -470,10 +468,6 @@ public class PlayerProfile {
|
|||||||
* mySQL Stuff
|
* mySQL Stuff
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public int getLastLogin() {
|
|
||||||
return lastlogin;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getMySQLuserId() {
|
public int getMySQLuserId() {
|
||||||
return userid;
|
return userid;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user