All Mods Resource Packs Data Packs Shaders Modpacks Plugins
VPacketEvents

VPacketEvents

by 4drian3d • Downloads: 14 • Followers: 0
Description
Gallery
Changelog
Versions

VPacketEvents

GitHub Downloads

Manage and register packets through Velocity's native events

class PacketListener {
    @Subscribe
    public void onPacketReceive(PacketReceiveEvent event) {
        final MinecraftPacket packet = event.getPacket();
        if (packet instanceof KeyedPlayerCommand commandPacket) {
           event.setResult(GenericResult.denied());
        }
    } 

    @Subscribe
    public void onPacketSend(PacketSendEvent event) {
        // some stuff
    }

    public void registerPacket() {
        // UpdateTeamsPacket registration
        PacketRegistration.of(UpdateTeamsPacket.class)
                .direction(Direction.CLIENTBOUND)
                .packetSupplier(UpdateTeamsPacket::new)
                .stateRegistry(StateRegistry.PLAY)
                .mapping(0x47, MINECRAFT_1_13, false)
                .mapping(0x4B, MINECRAFT_1_14, false)
                .mapping(0x4C, MINECRAFT_1_15, false)
                .mapping(0x55, MINECRAFT_1_17, false)
                .mapping(0x58, MINECRAFT_1_19_1, false)
                .mapping(0x56, MINECRAFT_1_19_3, false)
                .mapping(0x5A, MINECRAFT_1_19_4, false)
                .register();
    }
}

Installation

  • Download VPacketEvents from Modrinth
  • Drag and drop on your plugins folder
  • Start the server

Dev Setup

Gradle

repositories {
    mavenCentral()
}
dependencies {
    compileOnly("io.github.4drian3d:vpacketevents-api:1.1.0")
}

Javadocs

https://javadoc.io/doc/io.github.4drian3d/vpacketevents-api

How to Install VPacketEvents (Mod)

VPacketEvents by 4drian3d is verified for Velocity across Minecraft versions 1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2, 1.12, 1.12.1 (latest release: 1.2.0, file size: 14 KB). Follow the steps below to install it safely from ModCraft.tv:

  1. Click the Download button above and select your Minecraft version (1.10, 1.10.1, 1.10.2, 1.11, 1.11.1, 1.11.2, 1.12, 1.12.1) and platform (Velocity).
  2. Make sure you have the compatible loader or environment installed for Velocity.
  3. Move the downloaded VPacketEvents file into your Minecraft .minecraft/mods folder and launch the game.

All Versions

+ Add Version
Name Game version Platforms Published Downloads Actions
26.3 26.2 26.1.x +15
Velocity
2mo ago 8
26.1 1.21.x 1.20.x +13
Velocity
2mo ago 4
1.19.x 1.18.x 1.17.x +10
Velocity
2mo ago 3
1.19.x 1.18.x 1.17.x +10
Velocity
2mo ago 2
1.19.x 1.18.x 1.17.x +10
Velocity
2mo ago 2
[1.2.0] VPacketEvents 1.2.0 by 4drian3d on Oct 12, 2026
Download
## What's Changed
  • Updated to Java 25
  • Updated to Velocity 4
  • Deprecated and replaced API method PacketRegistration#of with PacketRegistration#ofPacket
  • Replaced Jetbrains annotations with JSpecify

[1.1.0] VPacketEvents 1.1.0 by 4drian3d on Oct 12, 2026
Download
New API added for easy packet registration in Velocity

``java
// Example of UpdateTeam registration
PacketRegistration.of(UpdateTeamsPacket.class)
.direction(Direction.CLIENTBOUND)
.packetSupplier(UpdateTeamsPacket::new)
.stateRegistry(StateRegistry.PLAY)
.mapping(0x47, MINECRAFT_1_13, false)
.mapping(0x4B, MINECRAFT_1_14, false)
.mapping(0x4C, MINECRAFT_1_15, false)
.mapping(0x55, MINECRAFT_1_17, false)
.mapping(0x58, MINECRAFT_1_19_1, false)
.mapping(0x56, MINECRAFT_1_19_3, false)
.mapping(0x5A, MINECRAFT_1_19_4, false)
.register();
``

## What's Changed

[1.0.2] VPacketEvents 1.0.2 by 4drian3d on Oct 12, 2026
Download
This update is mostly about fixing an incompatibility with LimboAPI, which for some reason completely replaces a fundamental function of Velocity, with the possibility of breaking certain plugins in some setups

## What's Changed

[1.0.1] VPacketEvents 1.0.1 by 4drian3d on Oct 12, 2026
Download
  • Fixed version string in initialization
  • Some javadoc fixes

VPacketEvents Icon
Download VPacketEvents
Select game version
Select platform