Files
src
build.gradle
Code
14 677
src/main/java/com/example/escaperoombooks/EscapeRoomBooks.java
package com.example.escaperoombooks;
import com.example.escaperoombooks.commands.FoutCommand;
import com.example.escaperoombooks.commands.Fout1Command;
import com.example.escaperoombooks.commands.Fout2Command;
import com.example.escaperoombooks.commands.GoedCommand;
import com.example.escaperoombooks.commands.Goed1Command;
import com.example.escaperoombooks.commands.Goed2Command;
import com.example.escaperoombooks.commands.KlaarCommand;
import com.example.escaperoombooks.managers.BookManager;
import com.example.escaperoombooks.managers.ConfigManager;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public class EscapeRoomBooks extends JavaPlugin {
private ConfigManager configManager;
private BookManager bookManager;
@Override
public void onEnable() {
saveDefaultConfig();
this.configManager = new ConfigManager(this);
this.bookManager = new BookManager(this);
getCommand("goed").setExecutor(new GoedCommand(this));
getCommand("goed1").setExecutor(new Goed1Command(this));
getCommand("goed2").setExecutor(new Goed2Command(this));
getCommand("fout").setExecutor(new FoutCommand(this));
getCommand("fout1").setExecutor(new Fout1Command(this));
getCommand("fout2").setExecutor(new Fout2Command(this));
getCommand("klaar").setExecutor(new KlaarCommand(this));
getLogger().info("EscapeRoomBooks plugin ingeschakeld!");
}
@Override
public void onDisable() {
getLogger().info("EscapeRoomBooks plugin uitgeschakeld!");
}
}