13
0
Signed-off-by: yaruma3341 <yaruma3341@gmail.com>
Dieser Commit ist enthalten in:
Yaruma3341 2019-07-12 20:33:16 +02:00 committet von yaruma3341
Ursprung b8306227f6
Commit 70958fac9a

Datei anzeigen

@ -217,12 +217,15 @@ public class SchematicCommand implements CommandExecutor {
File file = new File(folder, args[1] + ".schematic"); File file = new File(folder, args[1] + ".schematic");
file.createNewFile(); file.createNewFile();
try {
Files.setPosixFilePermissions(file.toPath(), Files.setPosixFilePermissions(file.toPath(),
EnumSet.of(PosixFilePermission.OWNER_READ, EnumSet.of(PosixFilePermission.OWNER_READ,
PosixFilePermission.OWNER_WRITE, PosixFilePermission.OWNER_WRITE,
PosixFilePermission.GROUP_READ, PosixFilePermission.GROUP_READ,
PosixFilePermission.OTHERS_READ, PosixFilePermission.OTHERS_READ,
PosixFilePermission.OTHERS_WRITE)); PosixFilePermission.OTHERS_WRITE));
} catch (Exception ex) { }
ClipboardFormat.SCHEMATIC.getWriter(new FileOutputStream(file)).write( ClipboardFormat.SCHEMATIC.getWriter(new FileOutputStream(file)).write(
FaweAPI.wrapPlayer(player).getSession().getClipboard().getClipboard(), FaweAPI.wrapPlayer(player).getSession().getClipboard().getClipboard(),