mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-02 01:46:45 +01:00
Add check for manual edits leaving out trailing colon
This commit is contained in:
parent
1731e7ba36
commit
f49be46cec
@ -116,6 +116,10 @@ public final class FlatfileDatabaseManager implements DatabaseManager {
|
|||||||
String line = "";
|
String line = "";
|
||||||
|
|
||||||
while ((line = in.readLine()) != null) {
|
while ((line = in.readLine()) != null) {
|
||||||
|
// Length checks depend on last character being ':'
|
||||||
|
if (line.charAt(line.length() - 1) != ':') {
|
||||||
|
line = line + ":";
|
||||||
|
}
|
||||||
String[] character = line.split(":");
|
String[] character = line.split(":");
|
||||||
String name = character[0];
|
String name = character[0];
|
||||||
long lastPlayed = StringUtils.getLong(character[37]) * Misc.TIME_CONVERSION_FACTOR;
|
long lastPlayed = StringUtils.getLong(character[37]) * Misc.TIME_CONVERSION_FACTOR;
|
||||||
|
Loading…
Reference in New Issue
Block a user