mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Separate anticheat settings (#15040)
This commit is contained in:
parent
d2b4c27f21
commit
1b2d24791a
6 changed files with 47 additions and 8 deletions
14
src/server.h
14
src/server.h
|
@ -81,6 +81,20 @@ struct PackedValue;
|
|||
struct ParticleParameters;
|
||||
struct ParticleSpawnerParameters;
|
||||
|
||||
// Anticheat flags
|
||||
enum {
|
||||
AC_DIGGING = 0x01,
|
||||
AC_INTERACTION = 0x02,
|
||||
AC_MOVEMENT = 0x04
|
||||
};
|
||||
|
||||
constexpr const static FlagDesc flagdesc_anticheat[] = {
|
||||
{"digging", AC_DIGGING},
|
||||
{"interaction", AC_INTERACTION},
|
||||
{"movement", AC_MOVEMENT},
|
||||
{NULL, 0}
|
||||
};
|
||||
|
||||
enum ClientDeletionReason {
|
||||
CDR_LEAVE,
|
||||
CDR_TIMEOUT,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue