This is an unofficial Java API for PZ. This can be used for exploit mitigation, creating advanced new features (networking), etc.
This API comes with a small anti-cheat for your server, as the game is missing authentication on various things. In order to configure the anti-cheat, place a json file called anticheat.json
in the directory with your game files.
{
"discordApi": "",
"enforceSyncPerks": false,
"enforceSyncThreshold": 10,
"enforceTeleport": false,
"enforceExtraInfo": false,
"enforcePlayerDeaths": false,
"enforceAdditionalPain": false,
"rateLimiting": true,
"rateLimits": [
{
"type": "StartFire",
"delay": 100
}
]
}
This the URL to a discord webhook so that you can receive notifications when a player receives a violation.
This option will ensure that values in the sync perk packet do not exceed a certain amount in one change.
This is the maximum value that a perk can change by in one update.
This option will ensure that nobody teleports except mods and admins. This packet is not sent under normal circumstances, so it is safe to block it.
This option will ensure that nobody changes their admin privileges. This packet is not sent under normal circumstances, so it is safe to block it.
This option will ensure that nobody sends deaths for other players. This packet is not sent for other players under normal circumstances, so it is safe to block it.
This option will ensure that nobody sends additional pain packets. This packet is not sent under normal circumstances, so it is safe to block it.
This option will apply rate limiting to packets to stop mass griefing attacks, spawning fires, mass killing, etc.
- Create a jar file from the root of your PZ, name this
zombie.jar
, and place it in thelib
directory - Compile the API into a runnable jar with Java 15
- Place this jar into your PZ root directory
- Run the jar file with the
-install
parameter on the command line - Your server/client is now modded