bugfix
Signed-off-by: yaruma3341 <yaruma3341@gmail.com>
Dieser Commit ist enthalten in:
Ursprung
b8306227f6
Commit
70958fac9a
@ -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();
|
||||||
Files.setPosixFilePermissions(file.toPath(),
|
|
||||||
EnumSet.of(PosixFilePermission.OWNER_READ,
|
try {
|
||||||
PosixFilePermission.OWNER_WRITE,
|
Files.setPosixFilePermissions(file.toPath(),
|
||||||
PosixFilePermission.GROUP_READ,
|
EnumSet.of(PosixFilePermission.OWNER_READ,
|
||||||
PosixFilePermission.OTHERS_READ,
|
PosixFilePermission.OWNER_WRITE,
|
||||||
PosixFilePermission.OTHERS_WRITE));
|
PosixFilePermission.GROUP_READ,
|
||||||
|
PosixFilePermission.OTHERS_READ,
|
||||||
|
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(),
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren