diff --git a/src/main/java/me/chayapak1/chomensbot_mabe/Configuration.java b/src/main/java/me/chayapak1/chomensbot_mabe/Configuration.java index 21678b6..c025772 100644 --- a/src/main/java/me/chayapak1/chomensbot_mabe/Configuration.java +++ b/src/main/java/me/chayapak1/chomensbot_mabe/Configuration.java @@ -13,7 +13,7 @@ public class Configuration { public static class Core { @Getter public int layers = 3; - @Getter public int refillInterval = 60 * 1000; +// @Getter public int refillInterval = 60 * 1000; @Getter public String customName = "[{\"text\":\"ChomeNS \",\"color\":\"yellow\"},{\"text\":\"Core\",\"color\":\"green\"},{\"text\":\"™\",\"color\":\"gold\"}]"; } diff --git a/src/main/java/me/chayapak1/chomensbot_mabe/Main.java b/src/main/java/me/chayapak1/chomensbot_mabe/Main.java index f8b483a..52f7b1a 100644 --- a/src/main/java/me/chayapak1/chomensbot_mabe/Main.java +++ b/src/main/java/me/chayapak1/chomensbot_mabe/Main.java @@ -7,7 +7,6 @@ import org.yaml.snakeyaml.constructor.Constructor; import java.io.*; import java.util.ArrayList; import java.util.List; -import java.util.Map; import java.util.concurrent.CountDownLatch; public class Main { diff --git a/src/main/java/me/chayapak1/chomensbot_mabe/plugins/CorePlugin.java b/src/main/java/me/chayapak1/chomensbot_mabe/plugins/CorePlugin.java index 1cae8b1..291506b 100644 --- a/src/main/java/me/chayapak1/chomensbot_mabe/plugins/CorePlugin.java +++ b/src/main/java/me/chayapak1/chomensbot_mabe/plugins/CorePlugin.java @@ -1,18 +1,7 @@ package me.chayapak1.chomensbot_mabe.plugins; -import com.github.steveice10.mc.protocol.data.game.entity.metadata.ItemStack; -import com.github.steveice10.mc.protocol.data.game.entity.object.Direction; -import com.github.steveice10.mc.protocol.data.game.entity.player.Hand; -import com.github.steveice10.mc.protocol.data.game.entity.player.PlayerAction; import com.github.steveice10.mc.protocol.data.game.level.block.CommandBlockMode; import com.github.steveice10.mc.protocol.packet.ingame.serverbound.inventory.ServerboundSetCommandBlockPacket; -import com.github.steveice10.mc.protocol.packet.ingame.serverbound.inventory.ServerboundSetCreativeModeSlotPacket; -import com.github.steveice10.mc.protocol.packet.ingame.serverbound.player.ServerboundPlayerActionPacket; -import com.github.steveice10.mc.protocol.packet.ingame.serverbound.player.ServerboundUseItemOnPacket; -import com.github.steveice10.opennbt.tag.builtin.ByteTag; -import com.github.steveice10.opennbt.tag.builtin.CompoundTag; -import com.github.steveice10.opennbt.tag.builtin.StringTag; -import com.github.steveice10.packetlib.Session; import com.nukkitx.math.vector.Vector3i; import lombok.Getter; import me.chayapak1.chomensbot_mabe.Bot; @@ -28,7 +17,7 @@ public class CorePlugin extends PositionPlugin.PositionListener { @Getter private boolean ready = false; public final Vector3i coreStart = Vector3i.from(0, 0, 0); - public final Vector3i coreEnd = Vector3i.from(15, 2, 15); + public Vector3i coreEnd; public Vector3i origin; @@ -93,6 +82,7 @@ public class CorePlugin extends PositionPlugin.PositionListener { @Override public void positionChange (Vector3i position) { + coreEnd = Vector3i.from(15, bot.config().core().layers() - 1, 15); origin = Vector3i.from( bot.position().position().getX(), 0, diff --git a/src/main/resources/default-config.yml b/src/main/resources/default-config.yml index 5a5e464..a3f05bb 100644 --- a/src/main/resources/default-config.yml +++ b/src/main/resources/default-config.yml @@ -12,16 +12,16 @@ selfCare: checkInterval: 1000, # vanilla - op: true, - gamemode: true, - endCredits: true, + op: true + gamemode: true + endCredits: true # essentials - cspy: true, - vanish: true, - nickname: true, - socialspy: true, - mute: true, + cspy: true + vanish: true + nickname: true + socialspy: true + mute: true # extras prefix: true