Skip to content
Success

Changes

Summary

  1. Server: Remove debug log and fix sendMessageToStaff (commit: 639a0e5) (details)
  2. Packets.c: Limit all messages to 1 per 500ms (commit: 53e8171) (details)
  3. Protocol.*: Set chat message type to system and make broadcastServerNotice variadic (commit: 0d36b58) (details)
  4. Commands.c: Make all broadcastServerNotice references variadic (commit: 83244dc) (details)
  5. Server: Small spam logic fixes (commit: 1231d7d) (details)
  6. Commands.c: Add /adminmute (commit: c7ff3e7) (details)
  7. Commands.c: Sort commands (commit: 7a767e3) (details)
  8. Packets.c: 3 block removal doesnt add 3 blocks back (commit: 11a7b97) (details)
  9. Commands.c: Sort commands in linked list (commit: 9c4255a) (details)
  10. Commands.c: Fix global Killing and building toggle (commit: 91754ae) (details)
  11. Server: Add ping protocol support (commit: 8d1678f) (details)
Commit 639a0e51fbab5661807a862e841f560b0f5800fa by 16738302+Haxk20
Server: Remove debug log and fix sendMessageToStaff
(commit: 639a0e5)
The file was modified Source/Packets.c (diff)
The file was modified Source/Protocol.c (diff)
Commit 53e81711a693106889b9807ab396af4a9bfe2401 by 16738302+Haxk20
Packets.c: Limit all messages to 1 per 500ms

I think it is only fair to limit players like this.
And if they continue spamming like this. They will be muted
for excessive spam.

Also staff members are excluded from both of these limitations
(commit: 53e8171)
The file was modified Source/Packets.c (diff)
The file was modified Source/Structs.h (diff)
Commit 0d36b583e11800de4c9266f01318b803b3f6ec4f by 16738302+Haxk20
Protocol.*: Set chat message type to system and make broadcastServerNotice variadic
(commit: 0d36b58)
The file was modified Source/Protocol.c (diff)
The file was modified Source/Protocol.h (diff)
Commit 83244dc5e93cd04732248dcce84baa24d104c634 by 16738302+Haxk20
Commands.c: Make all broadcastServerNotice references variadic
(commit: 83244dc)
The file was modified Source/Commands.c (diff)
The file was modified Source/Packets.h (diff)
The file was modified Source/Structs.h (diff)
The file was modified Source/Packets.c (diff)
Commit c7ff3e7c03cc28bd31a0cbe9b5f979bf91ebab11 by 16738302+Haxk20
Commands.c: Add /adminmute

Admins can receive a LOT of messages.
And some players love to abuse this.
Lets give staff the ability to mute players
from the usage of /admin messages.
(commit: c7ff3e7)
The file was modified Source/Structs.h (diff)
The file was modified Source/Commands.c (diff)
The file was modified Source/Commands.c (diff)
Commit 11a7b97446892a73ce49b933447994e9c415013f by 16738302+Haxk20
Packets.c: 3 block removal doesnt add 3 blocks back
(commit: 11a7b97)
The file was modified Source/Packets.c (diff)
Commit 9c4255a165c671106eb063d6aaa0caf4e2042c28 by 16738302+Haxk20
Commands.c: Sort commands in linked list

Sorting the commands in linked list allows us
to send them in z-> order in messages which
shows up on client side as a->z.
(commit: 9c4255a)
The file was modified Source/Commands.c (diff)
Commit 91754ae351ff6f7682676750a1e7c0fc3e9a3515 by 16738302+Haxk20
Commands.c: Fix global Killing and building toggle
(commit: 91754ae)
The file was modified Source/Commands.c (diff)
Commit 8d1678ff08d5dbfc0b023f75240306c52af28f06 by 16738302+Haxk20
Server: Add ping protocol support

This is used by clients to send raw
UDP packets to the server and be
able to check the ping that way.

And since clients send it on the
same socket as all other Enet packets
we have to intercept the packets before
enet processes them.
(commit: 8d1678f)
The file was addedSource/Ping.c
The file was modified Source/Server.c (diff)
The file was modified Source/CMakeLists.txt (diff)
The file was addedSource/Ping.h