0x45 S45PacketTitle
Displays titles/subtitles on screen with animation timing. Actions: TITLE, SUBTITLE, TIMES, CLEAR, RESET.
Published 2026-06-18 · Updated 2026-10-14
Fields
| Field | Type | Description |
|---|---|---|
| action | VarInt Enum | 0=TITLE, 1=SUBTITLE, 2=TIMES, 3=CLEAR, 4=RESET |
| titleText | IChatComponent (JSON) | Title text (for TITLE/SUBTITLE) |
| fadeInTime | int | Fade-in ticks (for TIMES) |
| stayTime | int | Display ticks |
| fadeOutTime | int | Fade-out ticks |
Wire Encoding
| Field | Type | Notes |
|---|---|---|
| Action | VarInt Enum | 0=title, 1=subtitle, 2=times, 3=clear, 4=reset |
| Text (if title/sub) | Chat Component (JSON) | |
| Fade In (if times) | int | Ticks |
| Stay (if times) | int | Ticks |
| Fade Out (if times) | int | Ticks |
MCP References
NetHandlerPlayClient.handleTitle()Handler Interface
INetHandlerPlayClientVanilla Source
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 | |
| 111 | |
| 112 | |
| 113 | |
| 114 | |
| 115 | |
| 116 | |
| 117 | |
| 118 | |
| 119 | |
| 120 | |
| 121 | |
| 122 | |
| 123 | |
| 124 | |
| 125 | |
| 126 | |
| 127 | |
| 128 | |
| 129 | |
| 130 | |
| 131 | |
| 132 | |
| 133 | |
| 134 | |
| 135 | |
| 136 | |
| 137 | |
| 138 | |
| 139 | |
| 140 | |
| 141 | |
| 142 | |
| 143 | |
| 144 | |
| 145 | |
| 146 | |
| 147 | |
Deobfuscated MCP 1.8.9 source of S45PacketTitle, fetched directly from Marcelektro/MavenMCP-1.8.9 (net/minecraft/network/play/server/S45PacketTitle.java) at build time and verified present.
Deep Dive
Role in the protocol
Screen title display with five actions: TITLE, SUBTITLE, TIMES, CLEAR and RESET. The vanilla server produces it from the /title command (CommandTitle), and plugins use it for game announcements. TITLE and SUBTITLE carry an IChatComponent, TIMES carries three ints (fade-in, stay, fade-out in ticks), and CLEAR and RESET carry no text. The client handler routes everything into GuiIngame.displayTitle, which owns the fade state machine.
Vanilla handling
handleTitle reads the type, formats the component text, and calls ingameGUI.displayTitle(title, subtitle, fadeIn, displayTime, fadeOut). GuiIngame stores the strings plus the three timings and animates alpha over ticks. RESET clears both text slots and restores default timings (10/70/20); CLEAR hides immediately. The packet is clientbound-only and stateless server-side: the server tracks nothing about what the client currently displays.
Why clients touch it
Two module hits in the corpus. Rise 6.1.30 and 6.2.4 ship RueSessionStats, a SessionStats HUD mode that listens on PacketReceiveEvent, strips control codes from the title message, and increments its wins counter when the text equals 'VICTORY!' (Hypixel game-win detection). November Recode 2.0's AutoPlayModule pattern-matches S45PacketTitle inside its packet-in handler but only null-checks the message; the branch carries no behaviour, so the title serves as a guard against a null component rather than a signal. Anti-title modules that suppress or rewrite titles are common in other clients, but none of the 10 reference clients has one: the corpus shows no cancel-based title handling.
Exploit surface
The text is a full IChatComponent parsed client-side, so it shares the component-parsing attack surface of S02PacketChat, including formatting codes and arbitrarily nested JSON. The handler calls getFormattedText() with no length limit beyond the component parser's own. For module authors the useful property is that titles are a timing-accurate game-state signal: Hypixel sends VICTORY! exactly once per win, which is why the win counter keys off it rather than chat.
Server-Side Handling
CommandTitle constructs the packet per /title syntax: TIMES from three parsed ints, TITLE and SUBTITLE with a ChatComponentProcessor-processed component, CLEAR and RESET with a null component. The server keeps no per-client title state; each packet is fire-and-forget. Plugins such as Hypixel send titles directly with their own timing sequences, typically TIMES followed by TITLE.
Protocol Analysis
Type is a VarInt enum. TITLE and SUBTITLE append an IChatComponent (JSON); TIMES appends three ints; CLEAR and RESET append nothing. readPacketData reads the component only for TITLE and SUBTITLE and the three ints only for TIMES. The component is null on the wire for TIMES, CLEAR and RESET, and handlers must tolerate that; RueSessionStats and November's AutoPlayModule both null-guard the component before use.
Anti-Cheat Landscape
No anti-cheat involvement: titles are cosmetic, clientbound and unacknowledged. Suppressing or rewriting them cannot affect server-side validation. The only measurable behaviour is client rendering, which is invisible to the server.
implementation Implementation Cases
Screen title state machine fed by /title and plugin announcements. Rise's RueSessionStats HUD mode uses the VICTORY! title as a win signal for its session stats counter; November Recode 2.0's AutoPlayModule pattern-matches S45PacketTitle with a null-message guard only. No anti-title module exists in the 10 clients.
Session stats HUD overlay that counts kills and wins; uses S45PacketTitle to detect Hypixel game wins.
A Mode
// ===== FILE: Rise 6.1.30, com/alan/clients/module/impl/render/sessioninfo/RueSessionStats.java =====
package com.alan.clients.module.impl.render.sessioninfo;
import com.alan.clients.event.Listener;
import com.alan.clients.event.annotations.EventLink;
import com.alan.clients.event.impl.motion.PreMotionEvent;
import com.alan.clients.event.impl.other.KillEvent;
import com.alan.clients.event.impl.other.ServerJoinEvent;
import com.alan.clients.event.impl.packet.PacketReceiveEvent;
import com.alan.clients.event.impl.render.Render2DEvent;
import com.alan.clients.font.Fonts;
import com.alan.clients.font.Weight;
import com.alan.clients.module.impl.render.SessionStats;
import com.alan.clients.util.localization.Localization;
import com.alan.clients.util.render.ColorUtil;
import com.alan.clients.util.render.RenderUtil;
import com.alan.clients.util.vector.Vector2d;
import com.alan.clients.value.Mode;
import com.alan.clients.value.impl.DragValue;
import lombok.AllArgsConstructor;
import net.minecraft.network.play.server.S45PacketTitle;
import net.minecraft.util.StringUtils;
import java.awt.*;
import java.util.concurrent.TimeUnit;
import static com.alan.clients.layer.Layers.BLUR;
import static com.alan.clients.layer.Layers.REGULAR;
public final class RueSessionStats extends Mode<SessionStats> {
private final DragValue position = this.getParent().getPosition();
public RueSessionStats(String name, SessionStats parent) {
super(name, parent);
}
private Session session = new Session(0, 0, 0, 0, 0, 0);
private String time = "0 seconds";
@EventLink
public final Listener<PreMotionEvent> onPreMotionEvent = event -> {
// Don't do this awful shit every frame
if (mc.thePlayer.ticksExisted % 20 == 0) {
long elapsed = System.currentTimeMillis() - this.session.startTime;
long hours = TimeUnit.MILLISECONDS.toHours(elapsed);
long minutes = TimeUnit.MILLISECONDS.toMinutes(elapsed) % 60;
long seconds = TimeUnit.MILLISECONDS.toSeconds(elapsed) % 60;
String base = "";
if (hours > 0)
base += hours + " " + (hours == 1 ? Localization.get("ui.sessionstats.hour") : Localization.get("ui.sessionstats.hours")) + ((minutes == 0 ? "" : " "));
if (minutes > 0)
base += minutes + " " + (minutes == 1 ? Localization.get("ui.sessionstats.minute") : Localization.get("ui.sessionstats.minutes")) + (seconds == 0 || hours > 0 ? "" : " ");
if (seconds > 0 && hours == 0)
base += seconds + " " + (seconds == 1 ? Localization.get("ui.sessionstats.second") : Localization.get("ui.sessionstats.seconds"));
this.time = base;
}
};
@EventLink
public final Listener<Render2DEvent> onRender2D = event -> {
double padding = 8;
position.scale = new Vector2d(200 - 70, 100 - 45);
// Don't draw if the F3 menu is open
if (mc.gameSettings.showDebugInfo) return;
getLayer(BLUR).add(() -> {
RenderUtil.roundedRectangle(position.position.x, position.position.y, position.scale.x, position.scale.y, 11, Color.BLACK);
});
// Draw all the text itself
getLayer(REGULAR, 1).add(() -> {
RenderUtil.roundedRectangle(position.position.x, position.position.y, position.scale.x, position.scale.y, 11, ColorUtil.withAlpha(Color.black, 100));
RenderUtil.roundedOutlineGradientRectangle(position.position.x, position.position.y, position.scale.x, position.scale.y, 11, 0.5, ColorUtil.withAlpha(getTheme().getFirstColor(), 200), ColorUtil.withAlpha(getTheme().getSecondColor(), 200));
// Format the walking/flying distance in meters/km
Fonts.MAIN.get(24, Weight.REGULAR).drawCentered(Localization.get("ui.sessionstats.name"), position.position.x + position.scale.x / 2f, position.position.y + padding, getTheme().getAccentColor().getRGB());
Fonts.MAIN.get(18, Weight.REGULAR).drawCentered(time, position.position.x + position.scale.x / 2f, position.position.y + padding + 19, new Color(255, 255, 255, 200).getRGB());
Fonts.MAIN.get(18, Weight.REGULAR).drawCentered(Localization.get("ui.sessionstats.kills").toLowerCase() + " " + session.kills, position.position.x + 35, position.position.y + padding + 32, new Color(255, 255, 255, 200).getRGB());
Fonts.MAIN.get(18, Weight.REGULAR).drawWithShadow(Localization.get("ui.sessionstats.wins").toLowerCase() + " " + session.wins, position.position.x + 75, position.position.y + padding + 32, new Color(255, 255, 255, 200).getRGB());
});
};
@EventLink
public final Listener<KillEvent> onKill = event -> {
this.session.kills++;
};
@EventLink
public final Listener<PacketReceiveEvent> onPacketReceiveEvent = event -> {
if (event.getPacket() instanceof S45PacketTitle) {
S45PacketTitle s45 = (S45PacketTitle) event.getPacket();
if (s45.getMessage() == null) return;
if (StringUtils.stripControlCodes(s45.getMessage().getUnformattedText()).equals("VICTORY!")) {
this.session.wins++;
}
}
};
@EventLink
public final Listener<ServerJoinEvent> onServerJoin = event -> {
this.session = new Session(0, 0, 0, 0, 0, 0);
};
@AllArgsConstructor
private static class Session {
int kills, wins;
int userBans, globalBans;
double distanceWalked, distanceFlown;
final long startTime = System.currentTimeMillis();
}
}
// NOTE (AI): The S45 hook is the wins counter: every PacketReceiveEvent is checked for S45PacketTitle, control codes are stripped from the unformatted message, and an exact match on 'VICTORY!' increments the session win count. The null check on getMessage() matters because TIMES, CLEAR and RESET actions carry no component. The kill counter comes from the client's own KillEvent instead of S42PacketCombatEvent, which the vanilla server never sends for deaths. Rise 6.2.4 ships the identical file under Client-release2/Client/src/main/java.Automatically re-queue for the next game after a Hypixel or BlocksMC match; the S45PacketTitle branch only guards against a null title component.
An EventPacket.In listener on November's event bus. In HYPIXEL mode it parses S02PacketChat siblings for a 'Click here!' RUN_COMMAND click event after a win or death message, stores the command, and sends it via addToSendQueueSilent after the configured delay. The S45PacketTitle branch is a match with a null-message guard and no further action, so the title path is effectively inert; the module's real signal is chat.
// ===== FILE: November Recode 2.0, feature/module/impl/player/AutoPlayModule.java =====
/* November.lol © 2023 */
package lol.november.feature.module.impl.player;
import lol.november.November;
import lol.november.feature.module.Category;
import lol.november.feature.module.Module;
import lol.november.feature.module.Register;
import lol.november.feature.setting.Setting;
import lol.november.listener.bus.Listener;
import lol.november.listener.bus.Subscribe;
import lol.november.listener.event.net.EventPacket;
import lol.november.listener.event.player.EventUpdate;
import lol.november.utility.math.timer.Timer;
import net.minecraft.event.ClickEvent;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.network.play.client.C01PacketChatMessage;
import net.minecraft.network.play.client.C08PacketPlayerBlockPlacement;
import net.minecraft.network.play.client.C09PacketHeldItemChange;
import net.minecraft.network.play.server.S02PacketChat;
import net.minecraft.network.play.server.S45PacketTitle;
import net.minecraft.util.IChatComponent;
/**
* @author Gavin
* @since 2.0.0
*/
@Register(
name = "AutoPlay",
description = "Automatically plays the next game for you",
category = Category.PLAYER
)
public class AutoPlayModule extends Module {
private final Setting<Mode> mode = new Setting<>("Mode", Mode.HYPIXEL);
private final Setting<Double> delay = new Setting<>(
"Delay",
1.5,
0.01,
0.0,
5.0
);
private final Timer timer = new Timer();
private String playCommand;
private int paperSlot;
@Override
public void disable() {
super.disable();
playCommand = null;
if (mode.getValue() == Mode.BLOCKS_MC && paperSlot != -1) {
November.instance().inventory().sync();
}
paperSlot = -1;
}
@Subscribe
private final Listener<EventUpdate> update = event -> {
if (mc.thePlayer.ticksExisted < 10) {
paperSlot = -1;
playCommand = null;
return;
}
if (mode.getValue() == Mode.HYPIXEL || mode.getValue() == Mode.MUSH_MC) {
if (
playCommand == null ||
!timer.passed(delay.getValue().longValue() * 1000L)
) return;
timer.reset();
mc.thePlayer.sendQueue.addToSendQueueSilent(
new C01PacketChatMessage(playCommand)
);
} else if (mode.getValue() == Mode.BLOCKS_MC) {
if (paperSlot == -1) {
for (int i = 0; i < 9; ++i) {
ItemStack itemStack = mc.thePlayer.inventory.getStackInSlot(i);
if (itemStack != null && itemStack.getItem() == Items.paper) {
paperSlot = i;
timer.reset();
break;
}
}
return;
}
if (!timer.passed(delay.getValue().longValue() * 1000L)) return;
timer.reset();
mc.thePlayer.sendQueue.addToSendQueueSilent(
new C09PacketHeldItemChange(paperSlot)
);
mc.thePlayer.sendQueue.addToSendQueueSilent(
new C08PacketPlayerBlockPlacement(
November.instance().inventory().itemStack()
)
);
November.instance().inventory().sync();
}
};
@Subscribe
private final Listener<EventPacket.In> packetIn = event -> {
if (mode.getValue() == Mode.HYPIXEL) {
if (event.get() instanceof S02PacketChat packet) {
if (packet.getChatComponent() == null) return;
String raw = packet.getChatComponent().getUnformattedText();
if (
raw.contains("You won! Want to play again? Click here! ") ||
raw.contains("You died! Want to play again? Click here! ")
) {
timer.reset();
for (IChatComponent component : packet
.getChatComponent()
.getSiblings()) {
if (
component.getUnformattedText().contains("Click here!") &&
component.getChatStyle().getChatClickEvent() != null
) {
ClickEvent clickEvent = component
.getChatStyle()
.getChatClickEvent();
if (clickEvent.getAction() == ClickEvent.Action.RUN_COMMAND) {
playCommand = clickEvent.getValue();
timer.reset();
return;
}
}
}
}
} else if (event.get() instanceof S45PacketTitle packet) {
if (packet.getMessage() == null) return;
}
}
};
private enum Mode {
HYPIXEL,
BLOCKS_MC,
MUSH_MC,
}
}
// NOTE (AI): The S45 branch (else-if on S45PacketTitle) only null-checks getMessage() and does nothing else; the actual play-again logic keys off the S02 chat click event. The title reference is a corpus hit but functionally vestigial for this module.anticheat Anti-Cheat Checks
No anticheat processes the title packet. The corpus is 'Title' keyword noise: inventory GUI titles (Hydro menus, TruthfulAC GUI menus, NCP InventoryListener, Arc InventoryListener, MinecraftAntiCheat MenuEvents), scoreboard and sidebar output (Shard), discord webhook labels (Negativity, FlopAC), and book-inventory code (Grim ExploitB, Peyang Books). The only packet-shaped hits are Artemis's five wrapper interfaces (PacketPlayServerTitle, TitlesClear, TitlesSetAnimation, TitlesSetSubtitle, TitlesSetText) plus its PacketRepository registration (SERVER_PLAY + 75), and the Negativity PacketType TITLE constant; none of these consume or validate the packet. Titles are cosmetic, unacknowledged and carry no timing or state the server re-checks, so there is nothing to flag.
Related Packets
Wiki Cross-Reference
The fade-out value is the number of ticks spent fading out, not the time at which fading starts, mirroring the fade-in and stay semantics.
MCP 1.8.9 S45PacketTitle implements Packet
1.8.9 callers: CommandTitle.processCommand sends new S45PacketTitle (line 83): https://github.com/Marcelektro/MavenMCP-1.8.9/blob/master/src/main/java/net/minecraft/command/CommandTitle.java
Cross-checked against minecraft.wiki (CC BY-SA 3.0) for 1.8.9 accuracy.