Adds a command for testing different NPC sounds
All checks were successful
KnarCraft/BlacksmithVisuals/pipeline/head This commit looks good

This commit is contained in:
2024-08-04 11:50:16 +02:00
parent 891330af4a
commit a50e97454a
6 changed files with 160 additions and 29 deletions

View File

@@ -1,5 +1,6 @@
package net.knarcraft.blacksmithvisuals;
import net.knarcraft.blacksmithvisuals.command.PlayTestSoundCommand;
import net.knarcraft.blacksmithvisuals.command.ReloadCommand;
import net.knarcraft.blacksmithvisuals.command.SetNPCPositionCommand;
import net.knarcraft.blacksmithvisuals.listener.BlacksmithListener;
@@ -33,7 +34,7 @@ public final class BlacksmithVisuals extends JavaPlugin {
this.getConfig().options().copyDefaults(true);
this.reloadConfig();
this.saveConfig();
try {
this.configurationManager = new ConfigurationManager(this.getConfig());
} catch (InvalidConfigurationException exception) {
@@ -53,6 +54,7 @@ public final class BlacksmithVisuals extends JavaPlugin {
getServer().getPluginManager().registerEvents(new BlacksmithListener(this.configurationManager), this);
registerCommand("reload", new ReloadCommand());
registerCommand("setNPCPosition", new SetNPCPositionCommand());
registerCommand("playTestSound", new PlayTestSoundCommand());
}
@Override