This commit is contained in:
rrryfu
2023-09-25 23:19:16 +08:00
parent bbbbf9cada
commit 628bfc397e
7 changed files with 79 additions and 8 deletions
+4 -4
View File
@@ -49,12 +49,12 @@ public class Main extends JavaPlugin {
webhookConfig = new File("./NoS/config_webhook.json");
try {
if (isLoggingConfig.createNewFile()) {
System.out.println("Config created: " + isLoggingConfig.getName());
System.out.println("Configuration file created: " + isLoggingConfig.getName());
//FileWriter notifyWebhookConfigWriter = new FileWriter(notifyWebhookConfig);
//FileWriter pubMessageWebhookConfigWriter = new FileWriter(pubMessageWebhookConfig);
//notifyWebhookConfigWriter.write("{\"url_notify\": \"default-ns\"}");
FileWriter linkConfigWriter = new FileWriter(webhookConfig);
linkConfigWriter.write("{\"url_publicmsg\": \"default-ns\", \"url_notify\": \"default-ns\"}");
linkConfigWriter.write("{\n \"url_publicmsg\": \"default-ns\", \n \"url_notify\": \"default-ns\"\n}");
linkConfigWriter.close();
//notifyWebhookConfigWriter.close();
} else {
@@ -63,8 +63,8 @@ public class Main extends JavaPlugin {
} catch (IOException e) {
throw new RuntimeException(e);
}
// post
Bukkit.getConsoleSender().sendMessage("Note: This Spigot/Bukkit plugin is highly verbose, so it will log a lot of events...");
// such cap
//Bukkit.getConsoleSender().sendMessage("Note: This Spigot/Bukkit plugin is highly verbose, so it will log a lot of events...");
// register commands
try {
Objects.requireNonNull(this.getCommand("info")).setExecutor(new InfoCommand());