3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01:00
Dieser Commit ist enthalten in:
dordsor21 2021-09-17 17:26:41 +01:00
Ursprung 90aeb48040
Commit 1cc6ad1481
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 1E53E88969FFCF0B

Datei anzeigen

@ -187,7 +187,11 @@ public class SchematicCommands {
desc = "Remove a clipboard from your multi-clipboard" desc = "Remove a clipboard from your multi-clipboard"
) )
@CommandPermissions({"worldedit.clipboard.clear", "worldedit.schematic.clear"}) @CommandPermissions({"worldedit.clipboard.clear", "worldedit.schematic.clear"})
public void unload(Player player, LocalSession session, String fileName) throws WorldEditException { public void unload(
Player player, LocalSession session,
@Arg(desc = "File name, requires extension.")
String fileName
) throws WorldEditException {
URI uri; URI uri;
if (fileName.startsWith("file:/") || fileName.startsWith("http://") || fileName.startsWith("https://")) { if (fileName.startsWith("file:/") || fileName.startsWith("http://") || fileName.startsWith("https://")) {
uri = URI.create(fileName); uri = URI.create(fileName);
@ -225,7 +229,8 @@ public class SchematicCommands {
desc = "Move your loaded schematic" desc = "Move your loaded schematic"
) )
@CommandPermissions({"worldedit.schematic.move", "worldedit.schematic.move.other"}) @CommandPermissions({"worldedit.schematic.move", "worldedit.schematic.move.other"})
public void move(Player player, LocalSession session, String directory) throws WorldEditException, IOException { public void move(Player player, LocalSession session, @Arg(desc = "Directory.") String directory) throws WorldEditException,
IOException {
LocalConfiguration config = worldEdit.getConfiguration(); LocalConfiguration config = worldEdit.getConfiguration();
File working = worldEdit.getWorkingDirectoryPath(config.saveDir).toFile(); File working = worldEdit.getWorkingDirectoryPath(config.saveDir).toFile();
File dir = Settings.IMP.PATHS.PER_PLAYER_SCHEMATICS ? new File(working, player.getUniqueId().toString()) : working; File dir = Settings.IMP.PATHS.PER_PLAYER_SCHEMATICS ? new File(working, player.getUniqueId().toString()) : working;