hmmm
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user