forked from ChomeNS/chomens-bot-java
fix the shit
This commit is contained in:
parent
b7bd19699d
commit
83e3740146
4 changed files with 11 additions and 22 deletions
|
@ -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\"}]";
|
||||
}
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue