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:
@@ -24,7 +24,7 @@ import org.bukkit.inventory.Inventory;
|
||||
import java.util.UUID;
|
||||
|
||||
public interface BagManager {
|
||||
boolean isBagEnabled();
|
||||
boolean isEnabled();
|
||||
|
||||
Inventory getOnlineBagInventory(UUID uuid);
|
||||
|
||||
|
||||
@@ -19,5 +19,7 @@ package net.momirealms.customfishing.api.manager;
|
||||
|
||||
public interface CommandManager {
|
||||
|
||||
void loadCommands();
|
||||
void load();
|
||||
|
||||
void unload();
|
||||
}
|
||||
|
||||
@@ -30,4 +30,6 @@ public interface MarketManager {
|
||||
String getFormula();
|
||||
|
||||
double getPrice(float base, float bonus, float size);
|
||||
|
||||
boolean isEnable();
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user