Another temporary fix.

This commit is contained in:
boy0001 2014-12-21 18:54:22 +11:00
parent 2d1761f807
commit e6d682fd5a
3 changed files with 12 additions and 10 deletions

View File

@ -463,7 +463,7 @@ public enum C {
* @return translated if exists else default
*/
public String s() {
return manager.getTranslated(name(), lang).getTranslated().replaceAll("&-", "\n").replaceAll("\\n", "\n");
return manager.getTranslated(toString(), lang).getTranslated().replaceAll("&-", "\n").replaceAll("\\n", "\n");
/*
* if (PlotMain.translations != null) {
* final String t = PlotMain.translations.getString(this.toString());
@ -486,9 +486,4 @@ public enum C {
public String translated() {
return ChatColor.translateAlternateColorCodes('&', this.s());
}
@Override
public String toString() {
return this.s();
}
}

View File

@ -277,6 +277,6 @@ public class PlotMeConverter {
PlotMain.sendConsoleSenderMessage("&3PlotMe&8->&3PlotSquared&8:&7 Conversion has finished");
PlotMain.sendConsoleSenderMessage("&cAlthough the server may be functional in it's current state, it is recommended that you restart the server and remove PlotMe to finalize the installation. Please make careful note of any warning messages that may have showed up during conversion.");
}
}, 300);
}, 20);
}
}

View File

@ -265,14 +265,21 @@ public class SQLManager implements AbstractDB {
}
stmt.executeUpdate();
stmt.close();
} catch (final SQLException e) {
PlotMain.sendConsoleSenderMessage("&7[WARN] "+"Could not bulk save. Conversion may be slower...");
} catch (final Exception e) {
e.printStackTrace();
PlotMain.sendConsoleSenderMessage("&6[WARN] "+"Could not bulk save. Conversion may be slower...");
try {
for (Plot plot : plots) {
try {
createPlot(plot);
}
catch (Exception e3) {
PlotMain.sendConsoleSenderMessage("&c[ERROR] "+"Failed to save plot: "+plot.id);
}
}
}
catch (Exception e2) {
e2.printStackTrace();
PlotMain.sendConsoleSenderMessage("&c[ERROR] "+"Failed to save plots!");
}
}