RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendBanner.java
1package com.osroyale.net.packet.out;
2
3
4import com.osroyale.game.world.entity.mob.player.Player;
5import com.osroyale.net.packet.OutgoingPacket;
6import com.osroyale.net.packet.PacketType;
7
30
31public class SendBanner extends OutgoingPacket {
32
33 private final String title;
34 private final String message;
35 private final int color;
36
37 public SendBanner(Object title, Object message, int color) {
38 super(202, PacketType.VAR_BYTE);
39 this.title = String.valueOf(title);
40 this.message = String.valueOf(message);
41 this.color = color;
42 }
43
44 @Override
45 public boolean encode(Player player) {
46 builder.writeString(title).writeString(message).writeInt(color);
47 return true;
48 }
49
50}