Make set-greet-message require operator perms, remove System.out prints
This commit is contained in:
@@ -9,8 +9,6 @@ import moe.sob.events.player.*;
|
||||
import moe.sob.events.server.ServerLoad;
|
||||
import moe.sob.events.world.WorldLoad;
|
||||
import moe.sob.events.world.WorldUnload;
|
||||
import com.google.gson.JsonElement;
|
||||
import com.google.gson.JsonParser;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.configuration.file.FileConfiguration;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
@@ -21,8 +19,6 @@ import java.awt.*;
|
||||
import java.io.*;
|
||||
import java.net.HttpURLConnection;
|
||||
import java.net.URL;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.Date;
|
||||
import java.util.Objects;
|
||||
|
||||
@@ -33,7 +29,7 @@ public class Main extends JavaPlugin {
|
||||
public static File config;
|
||||
public static FileConfiguration configR;
|
||||
public static void main(String... args) {
|
||||
System.out.printf("Initializing using server address: %s...%n", ServerUtils.address);
|
||||
mainSmall.getLogger().info(String.format("Initializing using server address: %s...%n", ServerUtils.address));
|
||||
}
|
||||
@Override
|
||||
public void onDisable() {
|
||||
@@ -122,7 +118,7 @@ public class Main extends JavaPlugin {
|
||||
}
|
||||
} catch (Exception e) {
|
||||
mainSmall.getLogger().warning("Invalid webhook URL provide for your public messages. Please provide the correct webhook and check for any typos. (Caught exception)");
|
||||
System.out.printf("Exception: %s%n", e);
|
||||
mainSmall.getLogger().severe(String.format("Exception: %s%n", e));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user