9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-29 03:49:07 +00:00

fix fishing bag

This commit is contained in:
XiaoMoMi
2023-09-10 03:24:56 +08:00
parent 4c38dda7d3
commit 4741e383a1
11 changed files with 108 additions and 31 deletions

View File

@@ -24,7 +24,7 @@ import org.bukkit.inventory.Inventory;
import java.util.UUID;
public interface BagManager {
boolean isBagEnabled();
boolean isEnabled();
Inventory getOnlineBagInventory(UUID uuid);

View File

@@ -19,5 +19,7 @@ package net.momirealms.customfishing.api.manager;
public interface CommandManager {
void loadCommands();
void load();
void unload();
}

View File

@@ -30,4 +30,6 @@ public interface MarketManager {
String getFormula();
double getPrice(float base, float bonus, float size);
boolean isEnable();
}

View File

@@ -69,7 +69,7 @@ public class FishingPreparation extends Condition {
this.baitEffect = baitEffect;
}
if (plugin.getBagManager().isBagEnabled()) {
if (plugin.getBagManager().isEnabled()) {
Inventory fishingBag = plugin.getBagManager().getOnlineBagInventory(player.getUniqueId());
HashSet<String> uniqueUtils = new HashSet<>(4);
if (fishingBag != null) {