💖 Anti Spectate

PrettyPacketAC includes an Anti Spectate Detection system to prevent players from bypassing the spectate mode. This method ensures that players cannot use cheats to enter spectate mode without being detected.

🛠️ Configuration Overview

In your config.lua file, you can set up the Anti Spectate detection like this:

PrettyPacketAC.AntiSpectate = {
    enabled = false,
    action = "WARN"
}

🔧 Available Action

  • "WARN": Logs the detection but doesn’t take action.

  • "KICK": Kicks the player from the server if Anti Spectate is triggered.

  • "BAN": Bans the player from the server on detection.


📝 Recommendations for Testing

Since there’s only one method for Anti Spectate detection, we recommend setting the action to "WARN" initially to observe any potential issues and avoid kicking or banning legitimate players by mistake.


🔒 Adjusting for Your Server

You can configure the action based on your needs:

  • "WARN": Logs the detection for review.

  • "KICK": Kicks the player from the server if they attempt to spectate.

  • "BAN": Bans the player from the server if spectate is detected.


💡 Pro Tip:

Make sure to test the Anti Spectate detection on your server, especially if you’re using custom scripts that may allow players to spectate without triggering the normal system.

Last updated