mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-29 16:46:45 +01:00
Fixed player conversion for PlotMe 0.17
This commit is contained in:
parent
333ede514d
commit
7eeea0f10f
@ -149,16 +149,7 @@ public class PlotMeConnector_017 extends APlotMeConnector {
|
|||||||
MainUtil.sendConsoleMessage("&6Denied (" + key + ") references deleted plot; ignoring entry.");
|
MainUtil.sendConsoleMessage("&6Denied (" + key + ") references deleted plot; ignoring entry.");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
String name = r.getString("player");
|
UUID denied = UUID.fromString(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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
plot.denied.add(denied);
|
plot.denied.add(denied);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -173,16 +164,7 @@ public class PlotMeConnector_017 extends APlotMeConnector {
|
|||||||
MainUtil.sendConsoleMessage("&6Allowed (" + key + ") references deleted plot; ignoring entry.");
|
MainUtil.sendConsoleMessage("&6Allowed (" + key + ") references deleted plot; ignoring entry.");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
String name = r.getString("player");
|
UUID allowed = UUID.fromString(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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
plot.trusted.add(allowed);
|
plot.trusted.add(allowed);
|
||||||
}
|
}
|
||||||
r.close();
|
r.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user