6 Commits

Author SHA1 Message Date
16800135f0 Merge pull request 'src/main/java/de/steev/bm/Listener/PrepareAnvilListener.java aktualisiert' (#82) from bugfix/remove_anvill_costcap into Testing
Some checks failed
Build and Release Minecraft Plugin / build-and-release (push) Failing after 1m59s
Reviewed-on: #82
2025-12-03 14:30:27 +01:00
5eb08e1859 src/main/java/de/steev/bm/Listener/PrepareAnvilListener.java aktualisiert 2025-12-03 14:30:11 +01:00
ad3b275214 Merge pull request 'added eventlistener to plugin instance' (#81) from bugfix/remove_anvill_costcap into Testing
Some checks failed
Build and Release Minecraft Plugin / build-and-release (push) Failing after 2m0s
Reviewed-on: #81
2025-12-03 14:21:28 +01:00
6c2a56a179 added eventlistener to plugin instance 2025-12-03 14:20:41 +01:00
1a00dacdc2 Merge pull request 'bugfix/remove_anvill_costcap' (#76) from bugfix/remove_anvill_costcap into Testing
All checks were successful
Build and Release Minecraft Plugin / build-and-release (push) Successful in 2m28s
Reviewed-on: #76
2025-12-02 21:26:49 +01:00
868286d462 Merge pull request 'bugfix/remove_anvill_costcap' (#73) from bugfix/remove_anvill_costcap into Testing
Some checks failed
Build and Release Minecraft Plugin / build-and-release (push) Failing after 50s
Reviewed-on: #73
2025-12-02 21:11:00 +01:00
2 changed files with 5 additions and 3 deletions

View File

@@ -4,6 +4,7 @@ import de.steev.bm.Commands.back;
import de.steev.bm.Listener.BedListener;
import de.steev.bm.Listener.InteractListener;
import de.steev.bm.Listener.KillListener;
import de.steev.bm.Listener.PrepareAnvilListener;
import de.steev.bm.Manager.GameManager;
import de.steev.bm.utils.Config;
import de.steev.bm.utils.exceptions.ConfigEntryExceptions;
@@ -44,6 +45,7 @@ public class BetterMinecraft extends JavaPlugin implements Listener {
this.getServer().getPluginManager().registerEvents(new BedListener(this.gameManager), this);
this.getServer().getPluginManager().registerEvents(new KillListener(this.gameManager), this);
this.getServer().getPluginManager().registerEvents(new InteractListener(this.gameManager), this);
this.getServer().getPluginManager().registerEvents(new PrepareAnvilListener(this.gameManager), this);
this.getServer().getPluginManager().registerEvents(this, this);
Objects.requireNonNull(this.getCommand("back")).setExecutor(new back(this.gameManager));

View File

@@ -7,10 +7,10 @@ import org.bukkit.inventory.AnvilInventory;
public class PrepareAnvilListener {
private BetterMinecraft plugin;
private GameManager gameManager;
public PrepareAnvilListener(BetterMinecraft plugin) {
this.plugin = plugin;
public PrepareAnvilListener(GameManager gameManager) {
this.gameManager = gameManager;
}
@EventHandler