Fixing all broken references

This commit is contained in:
sauilitired 2015-07-03 11:45:00 +02:00
parent ebe80350dc
commit f6de97a512
21 changed files with 80 additions and 189 deletions

View file

@ -256,19 +256,19 @@ public class DebugUUID extends SubCommand {
}
if (newWrapper instanceof OfflineUUIDWrapper) {
PlotSquared.config.set("UUID.force-lowercase", false);
PlotSquared.config.set("UUID.offline", true);
PlotSquared.getInstance().config.set("UUID.force-lowercase", false);
PlotSquared.getInstance().config.set("UUID.offline", true);
}
else if (newWrapper instanceof LowerOfflineUUIDWrapper) {
PlotSquared.config.set("UUID.force-lowercase", true);
PlotSquared.config.set("UUID.offline", true);
PlotSquared.getInstance().config.set("UUID.force-lowercase", true);
PlotSquared.getInstance().config.set("UUID.offline", true);
}
else if (newWrapper instanceof DefaultUUIDWrapper) {
PlotSquared.config.set("UUID.force-lowercase", false);
PlotSquared.config.set("UUID.offline", false);
PlotSquared.getInstance().config.set("UUID.force-lowercase", false);
PlotSquared.getInstance().config.set("UUID.offline", false);
}
try {
PlotSquared.config.save(PlotSquared.configFile);
PlotSquared.getInstance().config.save(PlotSquared.getInstance().configFile);
}
catch (Exception e) {
MainUtil.sendConsoleMessage("Could not save configuration. It will need to be manuall set!");