mirror of
https://github.com/funkemunky/KauriV3.git
synced 2026-07-01 02:08:27 +00:00
Fixing missing classes, adding badpackets
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
package dev.brighten.ac.check.impl.packet.badpackets;
|
||||
|
||||
public class Pitch {
|
||||
}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package dev.brighten.ac.check.impl.order;
|
||||
package dev.brighten.ac.check.impl.packet.order;
|
||||
|
||||
import dev.brighten.ac.api.check.CheckType;
|
||||
import dev.brighten.ac.check.Check;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package dev.brighten.ac.check.impl.order;
|
||||
package dev.brighten.ac.check.impl.packet.order;
|
||||
|
||||
import dev.brighten.ac.Anticheat;
|
||||
import dev.brighten.ac.api.check.CheckType;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
package dev.brighten.ac.check.impl.order;
|
||||
package dev.brighten.ac.check.impl.packet.order;
|
||||
|
||||
import dev.brighten.ac.check.Check;
|
||||
import dev.brighten.ac.check.CheckData;
|
||||
@@ -185,7 +185,7 @@ public class AnticheatCommand extends BaseCommand {
|
||||
return crc.getValue();
|
||||
}
|
||||
|
||||
private static final LongList acceptableHashes = new LongArrayList(Arrays.asList(3912178420L, 2719903731L));
|
||||
private static final LongList acceptableHashes = new LongArrayList(Arrays.asList(3912178420L, 2719903731L, 2571101476L));
|
||||
|
||||
@Subcommand("alerts")
|
||||
@CommandPermission("anticheat.command.alerts")
|
||||
|
||||
@@ -104,7 +104,7 @@ public class PlayerRegistry {
|
||||
return crc.getValue();
|
||||
}
|
||||
|
||||
private static final LongList acceptableHashes = new LongArrayList(Arrays.asList(3912178420L, 2719903731L));
|
||||
private static final LongList acceptableHashes = new LongArrayList(Arrays.asList(3912178420L, 2719903731L, 2571101476L));
|
||||
|
||||
public Optional<APlayer> getPlayer(UUID uuid) {
|
||||
return Optional.ofNullable(aplayerMap.get(uuid.hashCode()));
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
package dev.brighten.ac.packet.wrapper.out;
|
||||
|
||||
import dev.brighten.ac.Anticheat;
|
||||
import dev.brighten.ac.packet.wrapper.PacketType;
|
||||
import dev.brighten.ac.packet.wrapper.WPacket;
|
||||
import dev.brighten.ac.packet.wrapper.objects.WrappedWatchableObject;
|
||||
import lombok.Builder;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Builder
|
||||
@Getter
|
||||
public class WPacketPlayOutEntityMetadata extends WPacket {
|
||||
|
||||
private int entityId;
|
||||
private List<WrappedWatchableObject> watchedObjects;
|
||||
|
||||
@Override
|
||||
public PacketType getPacketType() {
|
||||
return PacketType.ENTITY_METADATA;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getPacket() {
|
||||
return Anticheat.INSTANCE.getPacketProcessor().getPacketConverter().processEntityMetadata(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package dev.brighten.ac.packet.wrapper.out;
|
||||
|
||||
import dev.brighten.ac.Anticheat;
|
||||
import dev.brighten.ac.packet.wrapper.PacketType;
|
||||
import dev.brighten.ac.packet.wrapper.WPacket;
|
||||
import lombok.Builder;
|
||||
import lombok.Getter;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
@Getter
|
||||
@Builder
|
||||
public class WPacketPlayOutNamedEntitySpawn extends WPacket {
|
||||
|
||||
private int entityId;
|
||||
private UUID uuid;
|
||||
private double x, y, z;
|
||||
private float yaw, pitch;
|
||||
private Material itemInHand;
|
||||
|
||||
|
||||
@Override
|
||||
public PacketType getPacketType() {
|
||||
return PacketType.NAMED_ENTITY_SPAWN;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getPacket() {
|
||||
return Anticheat.INSTANCE.getPacketProcessor().getPacketConverter().processNamedEntitySpawn(this);
|
||||
}
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package dev.brighten.ac.packet.wrapper.out;
|
||||
|
||||
import dev.brighten.ac.Anticheat;
|
||||
import dev.brighten.ac.packet.wrapper.PacketType;
|
||||
import dev.brighten.ac.packet.wrapper.WPacket;
|
||||
import lombok.Builder;
|
||||
import lombok.Getter;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
|
||||
@Builder
|
||||
@Getter
|
||||
public class WPacketPlayOutRemoveEntityEffect extends WPacket {
|
||||
|
||||
private int entityId;
|
||||
private PotionEffectType effect;
|
||||
|
||||
@Override
|
||||
public PacketType getPacketType() {
|
||||
return PacketType.REMOVE_EFFECT;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getPacket() {
|
||||
return Anticheat.INSTANCE.getPacketProcessor().getPacketConverter().processRemoveEffect(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package dev.brighten.ac.packet.wrapper.out;
|
||||
|
||||
import dev.brighten.ac.Anticheat;
|
||||
import dev.brighten.ac.packet.wrapper.PacketType;
|
||||
import dev.brighten.ac.packet.wrapper.WPacket;
|
||||
import lombok.Builder;
|
||||
import lombok.Getter;
|
||||
import org.bukkit.entity.EntityType;
|
||||
|
||||
@Getter
|
||||
@Builder
|
||||
public class WPacketPlayOutSpawnEntityLiving extends WPacket {
|
||||
|
||||
private int entityId;
|
||||
private EntityType type;
|
||||
private double x, y, z;
|
||||
private float yaw, pitch, headYaw;
|
||||
private double motionX, motionY, motionZ;
|
||||
|
||||
@Override
|
||||
public PacketType getPacketType() {
|
||||
return PacketType.SPAWN_ENTITY_LIVING;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getPacket() {
|
||||
return Anticheat.INSTANCE.getPacketProcessor().getPacketConverter().processSpawnLiving(this);
|
||||
}
|
||||
}
|
||||
@@ -92,7 +92,7 @@ public class IntegrityCheck {
|
||||
return crc.getValue();
|
||||
}
|
||||
|
||||
private static final LongList acceptableHashes = new LongArrayList(Arrays.asList(3912178420L, 2719903731L));
|
||||
private static final LongList acceptableHashes = new LongArrayList(Arrays.asList(3912178420L, 2719903731L, 2571101476L));
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user