Fixed player conversion for PlotMe 0.17

This commit is contained in:
boy0001 2015-07-14 20:55:38 +10:00
parent 333ede514d
commit 7eeea0f10f

View File

@ -149,16 +149,7 @@ public class PlotMeConnector_017 extends APlotMeConnector {
MainUtil.sendConsoleMessage("&6Denied (" + key + ") references deleted plot; ignoring entry.");
continue;
}
String name = r.getString("player");
UUID denied = UUIDHandler.getUUID(name);
if (denied == null) {
if (name.equals("*")) {
denied = DBFunc.everyone;
} else {
MainUtil.sendConsoleMessage("&6Denied (" + key + ") references incorrect name (`" + name + "`)");
continue;
}
}
UUID denied = UUID.fromString(r.getString("player"));
plot.denied.add(denied);
}
@ -173,16 +164,7 @@ public class PlotMeConnector_017 extends APlotMeConnector {
MainUtil.sendConsoleMessage("&6Allowed (" + key + ") references deleted plot; ignoring entry.");
continue;
}
String name = r.getString("player");
UUID allowed = UUIDHandler.getUUID(name);
if (allowed == null) {
if (name.equals("*")) {
allowed = DBFunc.everyone;
} else {
MainUtil.sendConsoleMessage("&6Allowed (" + key + ") references incorrect name (`" + name + "`)");
continue;
}
}
UUID allowed = UUID.fromString(r.getString("player"));
plot.trusted.add(allowed);
}
r.close();