In `serverconfig.xml`, add the rules and other information you need to the `ServerLoginConfirmationText` value="". This way, when other players join, a window will pop up. If they agree to the rules, they can choose to join; if they disagree, they can choose to leave. Of course, you can download some UI mods to display additional content when pressing ESC.
Below are some ideas:
Note: `\n` is a newline character.
<property name="ServerLoginConfirmationText" value="1、Player Code of Conduct\nRespect others: No verbal abuse, personal attacks, racial discrimination, gender discrimination or political and religious discussions\nNo harassment: Do not spam repeatedly, send duplicate messages or disturb other players' normal gameplay\nFair play: No hacks, cheat programs or exploiting game bugs for unfair gains\nCooperate with admins: Obey reasonable arrangements by administrators. File appeals through official channels if you disagree\n\n2、Gameplay Rules\nNo stealing: Do not enter other players' private land claims, open their chests, workbenches, forges or harvest their planted crops\nNo griefing: Do not intentionally destroy other players' buildings, traps or defensive facilities\nNo mob luring: Do not lead zombies or animals to other players' bases on purpose\nResource sharing: Resources in public areas such as mines and forests can be collected freely; malicious monopoly or destruction is forbidden\nDeath loot: Server setting [No drop / Drop backpack only / Drop all], please be cautious\nQuest system: Accept and complete quests freely; do not steal quest kills or items maliciously\n\n3、Building and Land Claim Rules\nLand claim protection: Each player can place up to [X] land claim blocks, each covering [X] x [X] x [X] blocks\n\nBuilding limits:\nSingle building size shall not exceed 100x100x100 blocks\nNo building inside POIs or within [X] blocks from POIs\nNo building on roads, rivers or public areas\nNo performance heavy structures such as huge farms or dense trap arrays"/>