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.createNewFile();
|
||||
|
||||
try {
|
||||
Files.setPosixFilePermissions(file.toPath(),
|
||||
EnumSet.of(PosixFilePermission.OWNER_READ,
|
||||
PosixFilePermission.OWNER_WRITE,
|
||||
PosixFilePermission.GROUP_READ,
|
||||
PosixFilePermission.OTHERS_READ,
|
||||
PosixFilePermission.OTHERS_WRITE));
|
||||
} catch (Exception ex) { }
|
||||
|
||||
ClipboardFormat.SCHEMATIC.getWriter(new FileOutputStream(file)).write(
|
||||
FaweAPI.wrapPlayer(player).getSession().getClipboard().getClipboard(),
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren