+ unrelated plotme conversion fix
This commit is contained in:
Jesse Boyd 2017-08-10 16:35:53 +10:00
parent f49d43d6a3
commit c36ef1d237
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 5 additions and 3 deletions

View File

@ -147,7 +147,8 @@ public class PlotMeConnector_017 extends APlotMeConnector {
PS.log("&6Denied (" + key + ") references deleted plot; ignoring entry."); PS.log("&6Denied (" + key + ") references deleted plot; ignoring entry.");
continue; continue;
} }
UUID denied = UUID.fromString(resultSet.getString("player")); String player = resultSet.getString("player");
UUID denied = player.equals("*") ? DBFunc.everyone : UUID.fromString(player);
plot.getDenied().add(denied); plot.getDenied().add(denied);
} }
@ -162,7 +163,8 @@ public class PlotMeConnector_017 extends APlotMeConnector {
PS.log("&6Allowed (" + key + ") references deleted plot; ignoring entry."); PS.log("&6Allowed (" + key + ") references deleted plot; ignoring entry.");
continue; continue;
} }
UUID allowed = UUID.fromString(resultSet.getString("player")); String player = resultSet.getString("player");
UUID allowed = player.equals("*") ? DBFunc.everyone : UUID.fromString(player);
plot.getTrusted().add(allowed); plot.getTrusted().add(allowed);
} }
resultSet.close(); resultSet.close();

View File

@ -151,7 +151,7 @@ public class DebugExec extends SubCommand {
@Override @Override
public boolean onCommand(final PlotPlayer player, String[] args) { public boolean onCommand(final PlotPlayer player, String[] args) {
List<String> allowed_params = List<String> allowed_params =
Arrays.asList("calibrate-analysis", "remove-flag", "stop-expire", "start-expire", "show-expired", "seen", "list-scripts"); Arrays.asList("calibrate-analysis", "remove-flag", "stop-expire", "start-expire", "seen", "list-scripts");
if (args.length > 0) { if (args.length > 0) {
String arg = args[0].toLowerCase(); String arg = args[0].toLowerCase();
String script; String script;