Skip to content

Commit

Permalink
Simplify the template
Browse files Browse the repository at this point in the history
This is only for now though.
  • Loading branch information
esotericenderman committed Oct 30, 2024
1 parent 382ebb6 commit 34bddef
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 653 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,54 +2,9 @@

import dev.jorel.commandapi.CommandAPI;
import dev.jorel.commandapi.CommandAPIBukkitConfig;
import foundation.esoteric.minecraft.plugins.library.block.CustomBlockManager;
import foundation.esoteric.minecraft.plugins.library.commands.GiveCustomItemCommand;
import foundation.esoteric.minecraft.plugins.library.entity.CustomEntityManager;
import foundation.esoteric.minecraft.plugins.library.file.FileManagedPlugin;
import foundation.esoteric.minecraft.plugins.library.file.FileManager;
import foundation.esoteric.minecraft.plugins.library.http.server.HttpServerManager;
import foundation.esoteric.minecraft.plugins.library.item.CustomItemManager;
import foundation.esoteric.minecraft.plugins.library.item.CustomItemPlugin;
import foundation.esoteric.minecraft.plugins.library.resourcepack.ResourcePackManager;
import foundation.esoteric.minecraft.plugins.library.resourcepack.ResourcePackPlugin;
import org.bukkit.plugin.java.JavaPlugin;
import foundation.esoteric.minecraft.plugins.template.commands.SetLanguageCommand;
import foundation.esoteric.minecraft.plugins.template.data.player.PlayerDataManager;
import foundation.esoteric.minecraft.plugins.template.language.LanguageManager;
import foundation.esoteric.minecraft.plugins.template.language.Message;

public final class PaperTemplatePlugin extends JavaPlugin implements FileManagedPlugin, CustomItemPlugin, ResourcePackPlugin {

private FileManager fileManager;
private PlayerDataManager playerDataManager;
private LanguageManager languageManager;
private ResourcePackManager resourcePackManager;
private CustomItemManager customItemManager;
private CustomBlockManager customMultiblockManager;

public FileManager getFileManager() {
return fileManager;
}

public PlayerDataManager getPlayerDataManager() {
return playerDataManager;
}

public LanguageManager getLanguageManager() {
return languageManager;
}

public ResourcePackManager getResourcePackManager() {
return resourcePackManager;
}

public CustomItemManager getCustomItemManager() {
return customItemManager;
}

public CustomBlockManager getCustomMultiblockManager() {
return customMultiblockManager;
}
public final class PaperTemplatePlugin extends JavaPlugin {

@Override
public void onEnable() {
Expand All @@ -60,32 +15,5 @@ public void onEnable() {

CommandAPI.onLoad(commandAPIConfig);
CommandAPI.onEnable();

fileManager = new FileManager(this);
playerDataManager = new PlayerDataManager(this);
if (Message.isEnabled()) {
languageManager = new LanguageManager(this);
}

resourcePackManager = new ResourcePackManager(this);
new HttpServerManager(this);
customItemManager = new CustomItemManager(this);
new CustomEntityManager(this);
customMultiblockManager = new CustomBlockManager(this);

if (Message.isEnabled()) {
new SetLanguageCommand(this);
}
new GiveCustomItemCommand(this);
}

@Override
public void onDisable() {
if (playerDataManager != null) {
playerDataManager.save();
}
if (customMultiblockManager != null) {
customMultiblockManager.save();
}
}
}

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 34bddef

Please sign in to comment.