Skip to content

Commit

Permalink
Update dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Oct 29, 2024
1 parent 62db2be commit d64b422
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 166 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ dependencies {
implementation("dev.jorel", "commandapi-bukkit-shade-mojang-mapped", "9.5.3")
implementation("net.lingala.zip4j", "zip4j", "2.11.5")
implementation("com.github.EsotericFoundation:utility.kt:0.1.0")
implementation("com.github.EsotericFoundation:plugin-library:0.1.0")
implementation("com.github.EsotericFoundation:plugin-library:0.2.0")
}

tasks {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

import dev.jorel.commandapi.CommandAPI;
import dev.jorel.commandapi.CommandAPIBukkitConfig;
import foundation.esoteric.minecraft.plugins.library.commands.GiveCustomItemCommand;
import foundation.esoteric.minecraft.plugins.library.file.FileManagedPlugin;
import foundation.esoteric.minecraft.plugins.library.file.FileManager;
import foundation.esoteric.minecraft.plugins.library.item.CustomItemManager;
import foundation.esoteric.minecraft.plugins.library.item.CustomItemPlugin;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;
import org.esoteric.minecraft.plugins.template.commands.GiveCustomItemCommand;
import org.esoteric.minecraft.plugins.template.commands.PlaceCustomMultiblockCommand;
import org.esoteric.minecraft.plugins.template.commands.SetLanguageCommand;
import org.esoteric.minecraft.plugins.template.commands.SpawnCustomMultientityCommand;
import org.esoteric.minecraft.plugins.template.custom.items.CustomItem;
import org.esoteric.minecraft.plugins.template.custom.items.CustomItemManager;
import org.esoteric.minecraft.plugins.template.custom.multiblocks.CustomMultiblock;
import org.esoteric.minecraft.plugins.template.custom.multiblocks.CustomMultiblockManager;
import org.esoteric.minecraft.plugins.template.custom.multientities.CustomMultientity;
Expand All @@ -22,7 +22,7 @@
import org.esoteric.minecraft.plugins.template.language.Message;
import org.esoteric.minecraft.plugins.template.resourcepack.ResourcePackManager;

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

private FileManager fileManager;
private PlayerDataManager playerDataManager;
Expand Down Expand Up @@ -91,11 +91,10 @@ public void onEnable() {
if (Message.isEnabled()) {
languageManager = new LanguageManager(this);
}

resourcePackManager = new ResourcePackManager(this);
httpServerManager = new HttpServerManager(this);
if (CustomItem.isEnabled()) {
customItemManager = new CustomItemManager(this);
}
customItemManager = new CustomItemManager(this);
if (CustomMultientity.isEnabled()) {
customMultientityManager = new CustomMultientityManager(this);
}
Expand All @@ -106,9 +105,7 @@ public void onEnable() {
if (Message.isEnabled()) {
new SetLanguageCommand(this);
}
if (CustomItem.isEnabled()) {
new GiveCustomItemCommand(this);
}
new GiveCustomItemCommand(this);
if (CustomMultientity.isEnabled()) {
new SpawnCustomMultientityCommand(this);
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.esoteric.minecraft.plugins.template.language;

import org.esoteric.minecraft.plugins.template.custom.items.CustomItem;
import org.esoteric.minecraft.plugins.template.custom.multiblocks.CustomMultiblock;
import org.esoteric.minecraft.plugins.template.custom.multientities.CustomMultientity;

Expand All @@ -10,7 +9,7 @@ public enum Message {
SET_LANGUAGE_SUCCESSFULLY(() -> false),
UNKNOWN_LANGUAGE(() -> false),

UNKNOWN_CUSTOM_ITEM(CustomItem::isEnabled),
UNKNOWN_CUSTOM_ITEM(),
UNKNOWN_CUSTOM_MULTIENTITY(CustomMultientity::isEnabled),
UNKNOWN_CUSTOM_MULTIBLOCK(CustomMultiblock::isEnabled);

Expand Down

0 comments on commit d64b422

Please sign in to comment.