2024-03-20 13:42:42 +00:00
|
|
|
package cc.fascinated;
|
|
|
|
|
2024-03-26 09:00:12 +00:00
|
|
|
import cc.fascinated.account.AccountManager;
|
2024-03-20 13:42:42 +00:00
|
|
|
import cc.fascinated.command.CommandManager;
|
2024-03-21 23:33:50 +00:00
|
|
|
import cc.fascinated.metrics.MetricManager;
|
|
|
|
import cc.fascinated.placeholder.PlaceholderManager;
|
2024-03-26 09:00:12 +00:00
|
|
|
import cc.fascinated.playercolor.PlayerColorManager;
|
2024-03-20 13:42:42 +00:00
|
|
|
import cc.fascinated.worldsize.WorldSizeManager;
|
|
|
|
import org.bukkit.plugin.java.JavaPlugin;
|
|
|
|
|
2024-03-21 23:33:50 +00:00
|
|
|
import java.util.concurrent.LinkedBlockingQueue;
|
|
|
|
import java.util.concurrent.ThreadPoolExecutor;
|
|
|
|
import java.util.concurrent.TimeUnit;
|
|
|
|
|
2024-03-20 13:42:42 +00:00
|
|
|
public class Aetheria extends JavaPlugin {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The instance of the plugin.
|
|
|
|
*/
|
|
|
|
public static Aetheria INSTANCE;
|
|
|
|
|
2024-03-21 23:33:50 +00:00
|
|
|
public static ThreadPoolExecutor EXECUTOR = new ThreadPoolExecutor(2, 8, 0L, TimeUnit.MILLISECONDS, new LinkedBlockingQueue<>());
|
|
|
|
|
|
|
|
// todo: move to config
|
2024-03-20 13:42:42 +00:00
|
|
|
public static final String PREFIX = "§6§lAetheria §7» §f";
|
|
|
|
|
|
|
|
public Aetheria() {
|
|
|
|
INSTANCE = this;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onEnable() {
|
2024-03-20 17:50:17 +00:00
|
|
|
saveDefaultConfig();
|
|
|
|
|
2024-03-26 09:00:12 +00:00
|
|
|
new AccountManager();
|
|
|
|
|
2024-03-20 13:42:42 +00:00
|
|
|
new CommandManager();
|
|
|
|
new WorldSizeManager();
|
2024-03-21 23:33:50 +00:00
|
|
|
new PlaceholderManager();
|
|
|
|
new MetricManager();
|
2024-03-26 09:00:12 +00:00
|
|
|
new PlayerColorManager();
|
2024-03-20 13:42:42 +00:00
|
|
|
}
|
|
|
|
}
|