mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fixing mmoupdate to accomodate for party changes
This commit is contained in:
parent
2744fb122c
commit
f7b1aea7e0
@ -21,7 +21,7 @@ public class SQLConversionTask implements Runnable {
|
|||||||
BufferedReader in = new BufferedReader(file);
|
BufferedReader in = new BufferedReader(file);
|
||||||
String line = "";
|
String line = "";
|
||||||
String playerName = null;
|
String playerName = null;
|
||||||
String party = null;
|
//String party = null;
|
||||||
String mining = null;
|
String mining = null;
|
||||||
String woodcutting = null;
|
String woodcutting = null;
|
||||||
String repair = null;
|
String repair = null;
|
||||||
@ -63,10 +63,13 @@ public class SQLConversionTask implements Runnable {
|
|||||||
if (character.length > 1) {
|
if (character.length > 1) {
|
||||||
mining = character[1];
|
mining = character[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Looks like we still have party as the 3rd string in the array but we don't use it anymore
|
||||||
if (character.length > 3) {
|
if (character.length > 3) {
|
||||||
party = character[3];
|
party = character[3];
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
if (character.length > 4) {
|
if (character.length > 4) {
|
||||||
miningXP = character[4];
|
miningXP = character[4];
|
||||||
@ -231,10 +234,12 @@ public class SQLConversionTask implements Runnable {
|
|||||||
+ tablePrefix
|
+ tablePrefix
|
||||||
+ "users SET lastlogin = " + 0
|
+ "users SET lastlogin = " + 0
|
||||||
+ " WHERE id = " + id);
|
+ " WHERE id = " + id);
|
||||||
|
/*
|
||||||
Database.write("UPDATE "
|
Database.write("UPDATE "
|
||||||
+ tablePrefix
|
+ tablePrefix
|
||||||
+ "users SET party = '" + party
|
+ "users SET party = '" + party
|
||||||
+ "' WHERE id = " + id);
|
+ "' WHERE id = " + id);
|
||||||
|
*/
|
||||||
Database.write("UPDATE "
|
Database.write("UPDATE "
|
||||||
+ tablePrefix
|
+ tablePrefix
|
||||||
+ "skills SET "
|
+ "skills SET "
|
||||||
|
Loading…
Reference in New Issue
Block a user