forked from Skippeh/Oxide.GettingOverItMP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DisconnectReason.cs
52 lines (43 loc) · 1.34 KB
/
DisconnectReason.cs
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
namespace ServerShared
{
public enum DisconnectReason : byte
{
Invalid,
/// <summary>
/// Client failed to send handshake within the time limit.
/// </summary>
HandshakeTimeout,
/// <summary>
/// Client tried to send a handshake more than once.
/// </summary>
DuplicateHandshake,
/// <summary>
/// Client version is too old.
/// </summary>
VersionOlder,
/// <summary>
/// Client version is too new.
/// </summary>
VersionNewer,
/// <summary>
/// Client sent a message with an invalid MessageType, or serialized the data incorrectly.
/// </summary>
InvalidMessage,
/// <summary>
/// Client tried to use a name that was too long or contained invalid characters.
/// </summary>
InvalidName,
/// <summary>
/// Client tried to send any message other than ClientHandshake before having received a successful handshake response.
/// </summary>
NotAccepted,
/// <summary>
/// An error occured while trying to verify the user's steam session ticket.
/// </summary>
InvalidSteamSession,
/// <summary>
/// Client is banned from this server.
/// </summary>
Banned,
}
}