mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-29 11:59:11 +00:00
2.2.29
This commit is contained in:
@@ -21,7 +21,6 @@ import net.momirealms.customfishing.api.BukkitCustomFishingPlugin;
|
||||
import net.momirealms.customfishing.api.event.CustomFishingReloadEvent;
|
||||
import net.momirealms.customfishing.api.mechanic.MechanicType;
|
||||
import net.momirealms.customfishing.api.mechanic.config.ConfigManager;
|
||||
import net.momirealms.customfishing.api.mechanic.context.Context;
|
||||
import net.momirealms.customfishing.api.mechanic.misc.cooldown.CoolDownManager;
|
||||
import net.momirealms.customfishing.api.mechanic.misc.hologram.HologramManager;
|
||||
import net.momirealms.customfishing.api.mechanic.misc.placeholder.BukkitPlaceholderManager;
|
||||
|
||||
@@ -599,7 +599,11 @@ public class BukkitConfigManager extends ConfigManager {
|
||||
throw new RuntimeException(section.getRouteAsString());
|
||||
}
|
||||
Action<Player>[] actions = plugin.getActionManager().parseActions(section.getSection("actions"));
|
||||
switch (section.getString("type")) {
|
||||
String type = section.getString("type");
|
||||
if (type == null) {
|
||||
throw new RuntimeException(section.getRouteAsString());
|
||||
}
|
||||
switch (type) {
|
||||
case "lava-fishing" -> {
|
||||
return (((effect, context, phase) -> {
|
||||
if (phase == 0) {
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
package net.momirealms.customfishing.bukkit.storage.method.database.sql;
|
||||
|
||||
import net.momirealms.customfishing.api.BukkitCustomFishingPlugin;
|
||||
import net.momirealms.customfishing.api.mechanic.config.ConfigManager;
|
||||
import net.momirealms.customfishing.api.storage.data.PlayerData;
|
||||
import net.momirealms.customfishing.api.storage.user.UserData;
|
||||
import net.momirealms.customfishing.bukkit.storage.method.AbstractStorage;
|
||||
|
||||
@@ -20,7 +20,6 @@ package net.momirealms.customfishing.bukkit.storage.method.database.sql;
|
||||
import com.google.common.util.concurrent.ThreadFactoryBuilder;
|
||||
import dev.dejvokep.boostedyaml.YamlDocument;
|
||||
import net.momirealms.customfishing.api.BukkitCustomFishingPlugin;
|
||||
import net.momirealms.customfishing.api.mechanic.config.ConfigManager;
|
||||
import net.momirealms.customfishing.api.storage.StorageType;
|
||||
import net.momirealms.customfishing.api.storage.data.PlayerData;
|
||||
import net.momirealms.customfishing.api.storage.user.UserData;
|
||||
|
||||
Reference in New Issue
Block a user