Packet descriptions
This commit is contained in:
29
lib/classes/packets/KickUser.ts
Normal file
29
lib/classes/packets/KickUser.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
// This file has been automatically generated by writePacketClasses.js
|
||||
|
||||
import {UUID} from '../UUID';
|
||||
import {IPAddress} from '../IPAddress';
|
||||
import {MessageFlags} from '../../enums/MessageFlags';
|
||||
import {Packet} from '../Packet';
|
||||
|
||||
export class KickUserPacket implements Packet
|
||||
{
|
||||
name = 'KickUser';
|
||||
flags = MessageFlags.Trusted | MessageFlags.FrequencyLow;
|
||||
id = 4294901923;
|
||||
|
||||
TargetBlock: {
|
||||
TargetIP: IPAddress;
|
||||
TargetPort: number;
|
||||
};
|
||||
UserInfo: {
|
||||
AgentID: UUID;
|
||||
SessionID: UUID;
|
||||
Reason: string;
|
||||
};
|
||||
|
||||
getSize(): number
|
||||
{
|
||||
return (this.UserInfo['Reason'].length + 2) + 38;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user