mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-28 03:19:22 +00:00
fix import
This commit is contained in:
@@ -59,33 +59,29 @@ index 02dc93c394d37c9a84aa4a58d80615c403c54fb9..d93311c3a60e54378b97286bbe7dc73e
|
||||
|
||||
if (jm != null && !jm.equals(net.kyori.adventure.text.Component.empty())) { // Paper - Adventure
|
||||
diff --git a/src/main/java/top/leavesmc/leaves/LeavesConfig.java b/src/main/java/top/leavesmc/leaves/LeavesConfig.java
|
||||
index a73c79e57f51a6ab0f0d0b37fa6c87ff9bd69325..4b8d05838bd70a2932a36a5919436861b8e41c0b 100644
|
||||
index 85a24dd51762b7590cc8116fb51b742174b85e7e..7c67667a16262f28655b5413d748cca781683717 100644
|
||||
--- a/src/main/java/top/leavesmc/leaves/LeavesConfig.java
|
||||
+++ b/src/main/java/top/leavesmc/leaves/LeavesConfig.java
|
||||
@@ -6,6 +6,7 @@ import org.bukkit.Bukkit;
|
||||
@@ -7,6 +7,7 @@ import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.Command;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
+import top.leavesmc.leaves.bot.BotCommand;
|
||||
|
||||
import java.io.File;
|
||||
import java.lang.reflect.Method;
|
||||
@@ -51,10 +52,12 @@ public final class LeavesConfig {
|
||||
throw new RuntimeException(ex); // unreachable
|
||||
}
|
||||
}
|
||||
+ LeavesConfig.load(config);
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
@@ -59,6 +60,10 @@ public final class LeavesConfig {
|
||||
LeavesConfig.load(config);
|
||||
|
||||
commands = new HashMap<>();
|
||||
-
|
||||
- LeavesConfig.load(config);
|
||||
commands = new HashMap<>();
|
||||
+
|
||||
+ if (top.leavesmc.leaves.LeavesConfig.fakeplayerSupport) {
|
||||
+ commands.put("bot", new BotCommand("bot"));
|
||||
+ }
|
||||
}
|
||||
|
||||
public static void load(final YamlConfiguration config) {
|
||||
@@ -99,6 +102,11 @@ public final class LeavesConfig {
|
||||
@@ -99,6 +104,11 @@ public final class LeavesConfig {
|
||||
snowballAndEggCanKnockback = getBoolean("settings.snowball-and-egg-can-knockback-player", snowballAndEggCanKnockback);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user