Fixing issues

This commit is contained in:
NK 2022-11-23 22:39:05 +00:00
parent 9090b473cb
commit f3ccf080ea
5 changed files with 2 additions and 20 deletions

View file

@ -4,9 +4,7 @@ import me.night.nullvalkyrie.chests.MenuListener;
import me.night.nullvalkyrie.discord.DiscordClientManager; import me.night.nullvalkyrie.discord.DiscordClientManager;
import me.night.nullvalkyrie.enchantments.EnchantmentManager; import me.night.nullvalkyrie.enchantments.EnchantmentManager;
import me.night.nullvalkyrie.events.CustomItemEvents; import me.night.nullvalkyrie.events.CustomItemEvents;
//import me.night.nullvalkyrie.hardpoint.GameEvent;
import me.night.nullvalkyrie.events.DamageEffect; import me.night.nullvalkyrie.events.DamageEffect;
import me.night.nullvalkyrie.hardpoint.ConfigManager;
import me.night.nullvalkyrie.items.CustomItemManager; import me.night.nullvalkyrie.items.CustomItemManager;
import me.night.nullvalkyrie.npc.ClickNPC; import me.night.nullvalkyrie.npc.ClickNPC;
import me.night.nullvalkyrie.npc.NPC; import me.night.nullvalkyrie.npc.NPC;
@ -39,7 +37,6 @@ public final class Main extends JavaPlugin implements Listener {
EnchantmentManager.register(); EnchantmentManager.register();
new CustomItemManager(this); new CustomItemManager(this);
new FileManager(); new FileManager();
new CommandManager(this).register(); new CommandManager(this).register();
bossbar = Bukkit.createBossBar(ChatColor.GOLD + "Kuudra", BarColor.RED, BarStyle.SEGMENTED_12); bossbar = Bukkit.createBossBar(ChatColor.GOLD + "Kuudra", BarColor.RED, BarStyle.SEGMENTED_12);
Bukkit.getPluginManager().registerEvents(this, this); Bukkit.getPluginManager().registerEvents(this, this);
@ -51,7 +48,6 @@ public final class Main extends JavaPlugin implements Listener {
//Bukkit.getPluginManager().registerEvents(new GameEvent(this), this); //Bukkit.getPluginManager().registerEvents(new GameEvent(this), this);
new DiscordClientManager(); new DiscordClientManager();
new DatabaseManager(); new DatabaseManager();
ConfigManager.setConfig();
NPC.loadNPC(CustomItemManager.loadConfig("npcs.yml")); NPC.loadNPC(CustomItemManager.loadConfig("npcs.yml"));
this.injector = new PacketInjector(); this.injector = new PacketInjector();
} }

View file

@ -37,4 +37,6 @@ public class RightClickNPC extends Event implements Cancellable {
public HandlerList getHandlers() { public HandlerList getHandlers() {
return HANDLERS; return HANDLERS;
} }
public static HandlerList getHandlerList() { return HANDLERS; }
} }

View file

@ -5,6 +5,5 @@ import static me.night.nullvalkyrie.items.CustomItemManager.updateYamlFilesToPlu
public class FileManager { public class FileManager {
public FileManager() { public FileManager() {
updateYamlFilesToPlugin("shop.yml"); updateYamlFilesToPlugin("shop.yml");
updateYamlFilesToPlugin("hardpoint.yml");
} }
} }

View file

@ -1,14 +0,0 @@
'0':
name: Sussy
material: ENDER_CHEST
level: 10
rate: 0.7
enabled: true
last-claim: 1668206939600
'1':
name: Sussy
material: ENDER_CHEST
level: 10
rate: 0.7
enabled: true
last-claim: 1668208245832

View file

@ -1 +0,0 @@
data: