Usage:
- Installation and Setup:
- Place the downloaded PassiveWhitelist plugin JAR file into your server's plugins folder.
- Start the server or run the /reload command.
- Configuration:
- The plugin uses a customizable configuration file located at plugins/PassiveWhitelist/config.yml. Below are the default settings:
- question: "Evaluate the definite integral of four with respect to x, from zero to four."
- answer: "16"
- welcomeMessage: "Welcome! Please answer the following question to join the server:"
- correctMessage: "Correct! You can now play on the server."
- incorrectMessage: "Incorrect answer. Please try again."
- kickMessage: "You didn’t respond within the time limit."
- kickDelay: 3
Each of these values can be customized to suit your server's needs. For example, you can change the question, correct answer, or time delay before unverified players are kicked.
- Reload:
- After modifying config.yml, use /pw reload to apply changes without restarting the server.
Commands:
- /pw reload: Reloads the plugin's config.yml dynamically.
- /pw revoke <player>: Revokes authentication for a player, requiring them to answer the question again.
Restrictions for Unverified Players:
Until a player answers the question correctly:
- Movement: Players are frozen in place.
- Interactions: Breaking/placing blocks, interacting with entities, and using items are disabled.
- Commands: All commands are blocked.
- Item Pickup and Drop: Players cannot pick up or drop items.
- Damage: Players cannot deal or receive damage.
- Vehicles: Players cannot enter boats, minecarts, or other vehicles.
Once the correct answer is provided, these restrictions are removed, and the player is permanently authenticated.