Once your server is public, some people will try to break things: grief builds, cheat, steal staff accounts or knock the server offline. You can't stop every attempt, but a few habits make your server a much harder target and let you undo damage quickly.
online-mode=true in server.properties unless the server runs behind a properly set up proxy. Offline mode lets anyone join with any name, including yours.Operator status gives full control of the server. Give op only to yourself and staff you trust completely. For everyone else, including moderators, use a permissions plugin such as LuckPerms: create groups like default, helper and moderator, and give each group only the commands it really needs. Review the permissions when someone leaves the team.
An anti-cheat plugin detects things like flying, speed hacks and kill aura. No anti-cheat catches everything, and some cause false alarms, so test it and let staff check alerts before banning. Hiding ores from x-ray clients is also possible; Paper has a built-in option for it. A visible /report command and active staff help just as much as plugins.
A DDoS attack floods your server with traffic until it goes offline. You can't defend against a large attack on your own connection, so:
CraftRank's BurningLayer does this for you on its Network plan: players join a protected address that stops floods and bot joins and hides your real IP, and your website can sit behind the same edge.
Update your server software and plugins regularly; updates often fix exploits that let players crash servers or duplicate items. Download plugins only from trusted sites, never cracked versions, which often contain backdoors. Our server status checker is a quick way to see whether your server is reachable from outside after an attack or an update.