Fix //schem save -g

This commit is contained in:
Jesse Boyd 2018-05-23 16:18:18 +10:00
parent 999e97a2de
commit 6c05ec3b2a
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -285,7 +285,7 @@ public class SchematicCommands extends MethodCommands {
return;
}
File working = this.worldEdit.getWorkingDirectoryFile(config.saveDir);
File dir = global && Settings.IMP.PATHS.PER_PLAYER_SCHEMATICS ? new File(working, player.getUniqueId().toString()) : working;
File dir = !global && Settings.IMP.PATHS.PER_PLAYER_SCHEMATICS ? new File(working, player.getUniqueId().toString()) : working;
if (filename.contains("../")) {
if (!player.hasPermission("worldedit.schematic.save.other")) {
BBC.NO_PERM.send(player, "worldedit.schematic.save.other");