don't replace config. whops

This commit is contained in:
2022-05-01 15:20:00 +02:00
parent 9e13c7b2f1
commit 41ff6d9d3e
2 changed files with 2 additions and 2 deletions
@@ -66,7 +66,7 @@ public class BukkitCommandExecutor implements TabExecutor {
return true; return true;
} }
audiences.sender(sender).sendMessage(Component.text("Dumping all available commands to a file...")); audiences.sender(sender).sendMessage(Component.text("Dumping all available commands to a file..."));
if (CommandUtil.dumpAllBukkitCommands(CommandWhitelistBukkit.getServerCommands(), new File("plugins/CommandWhitelist/config.yml"))) { if (CommandUtil.dumpAllBukkitCommands(CommandWhitelistBukkit.getServerCommands(), new File("plugins/CommandWhitelist/command_dump.yml"))) {
audiences.sender(sender).sendMessage(Component.text("Commands dumped to command_dump.yml")); audiences.sender(sender).sendMessage(Component.text("Commands dumped to command_dump.yml"));
} else { } else {
audiences.sender(sender).sendMessage(Component.text("Failed to save the file.")); audiences.sender(sender).sendMessage(Component.text("Failed to save the file."));
@@ -75,7 +75,7 @@ public class BungeeMainCommand extends Command implements TabExecutor {
return; return;
} }
audiences.sender(sender).sendMessage(Component.text("Dumping all available commands to a file...")); audiences.sender(sender).sendMessage(Component.text("Dumping all available commands to a file..."));
if (CommandUtil.dumpAllBukkitCommands(CommandWhitelistWaterfall.getServerCommands(), new File("plugins/CommandWhitelist/config.yml"))) { if (CommandUtil.dumpAllBukkitCommands(CommandWhitelistWaterfall.getServerCommands(), new File("plugins/CommandWhitelist/command_dump.yml"))) {
audiences.sender(sender).sendMessage(Component.text("Commands dumped to command_dump.yml")); audiences.sender(sender).sendMessage(Component.text("Commands dumped to command_dump.yml"));
} else { } else {
audiences.sender(sender).sendMessage(Component.text("Failed to save the file.")); audiences.sender(sender).sendMessage(Component.text("Failed to save the file."));