46 lines
1017 B
Java
46 lines
1017 B
Java
|
|
package com.alttd.hunger_games;
|
||
|
|
|
||
|
|
import com.alttd.hunger_games.commands.BaseCommand;
|
||
|
|
import com.alttd.hunger_games.config.Config;
|
||
|
|
import com.alttd.hunger_games.config.Messages;
|
||
|
|
import lombok.extern.slf4j.Slf4j;
|
||
|
|
import org.bukkit.plugin.PluginManager;
|
||
|
|
import org.bukkit.plugin.java.JavaPlugin;
|
||
|
|
|
||
|
|
@Slf4j
|
||
|
|
public final class Main extends JavaPlugin {
|
||
|
|
|
||
|
|
private BaseCommand command;
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public void onEnable() {
|
||
|
|
log.info("Starting HungerGames");
|
||
|
|
reloadConfigs();
|
||
|
|
registerCommands();
|
||
|
|
registerEvents();
|
||
|
|
registerSchedulers();
|
||
|
|
}
|
||
|
|
|
||
|
|
@Override
|
||
|
|
public void onDisable() {
|
||
|
|
log.info("Disabling HungerGames");
|
||
|
|
}
|
||
|
|
|
||
|
|
private void registerCommands() {
|
||
|
|
command = new BaseCommand(this);
|
||
|
|
}
|
||
|
|
|
||
|
|
private void registerEvents() {
|
||
|
|
PluginManager pluginManager = getServer().getPluginManager();
|
||
|
|
}
|
||
|
|
|
||
|
|
public void reloadConfigs() {
|
||
|
|
Config.reload();
|
||
|
|
Messages.reload();
|
||
|
|
}
|
||
|
|
|
||
|
|
private void registerSchedulers() {
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|