Wave docs
Install Wave, connect it to the cloud and tune it for your server.
Requirements
- Paper 1.21.11 or a fork of it, on Java 21.
- A Wave license. Your jar comes from the client area with the license built in.
- Outgoing internet access from your server to the Wave cloud.
- Nothing for players. Any normal 1.21.11 client works.
Install
- Redeem your key on the License page of the client area and download your jar.
- Stop the server and put the jar in
plugins/. - Start the server. Wave connects to the cloud on its own and the server shows up in your dashboard.
- Check the connection in game:
/wave statusFirst days
On a new server, run Wave without any action for a few days and read the alerts first:
mitigation:
enabled: false
movement:
setbacks: false
punishments:
mode: "off"When the alerts look right, turn mitigation and setbacks on, then try punishments.mode: simulate before real.
Configuration
Everything lives in plugins/Wave/config.yml. Change it, then run /wave reload. No restart needed.
| Key | Default | What it does |
|---|---|---|
cloud.url, cloud.key | - | Not used by licensed jars: they connect with the license built into the jar. |
mitigation.enabled | true | Master switch for cancelling anything. Off means alerts only. |
mitigation.cancel-impossible-reach | true | Cancel hits that are out of reach after lag compensation. |
mitigation.cloud-mitigation | true | Make checks stricter for a player while the cloud flags them. |
movement.enabled | true | Movement checks: Simulation, Velocity, NoSlow, GroundSpoof, Timer, Blink, BadPackets. |
movement.setbacks | true | Send a player back to their last valid spot when a movement check fails. |
movement.debug | false | Write every prediction miss to movement-debug.log. For false flag reports only. |
punishments.mode | off | off alerts only, simulate shows a title instead, real kicks and bans. |
punishments.mitigate | 5 | Flags of one check before Wave mitigates. |
punishments.kick | 15 | Flags of one check before a kick. |
punishments.ban | 40 | Flags of one check before a ban. |
punishments.ban-days | 7 | Length of a Wave ban in days. |
punishments.checks | {} | Per check limits, for example { reach: { kick: 8, ban: 20 } }. |
exempt.players | [] | Names allowed to use /wave exempt besides the permission. |
storage.keep-days | 7 | Debug files older than this are deleted. |
storage.max-mb | 20 | A debug file bigger than this starts over. |
Commands
Every command is under /wave (alias /wac) and has tab completion.
| Command | What it does |
|---|---|
/wave status | Version, cloud connection and server id. |
/wave ping | Round trip time to the cloud. |
/wave reconnect | Reconnect to the cloud now. |
/wave reload | Reload config.yml. |
/wave alerts | Turn alerts on or off for yourself. |
/wave lookup <player> | Open a player's record: verdict, checks, alerts, kicks. |
/wave exempt | Turn every check off for yourself until you toggle it or rejoin. |
/wave cloudtest | Check that the cloud answers and flags test data correctly. |
/wave mark <label> | Write a label into movement-debug.log (needs movement.debug), so a false flag report shows what you were doing. |
Permissions
| Permission | Default | Allows |
|---|---|---|
wave.admin | op | Every /wave command. |
wave.alerts | op | Seeing alerts and toggling them. |
wave.exempt | nobody | /wave exempt. Being op is not enough. Other staff are told. |
Files
| File | What it is |
|---|---|
config.yml | Your settings. Wave never rewrites it. |
server-id.txt | This server's id for the cloud. Keep it when moving servers. |
players/ | Per player history used by /wave lookup. |
reports/ | False flag reports Wave writes on its own. |
movement-debug.log | Only with movement.debug on. Cleaned up automatically. |
fights/ | Combat recordings, only while debugging. Cleaned up automatically. |
Alerts and lookups
Staff with wave.alerts see at most one line per player and check every 2 seconds:
Wave | Steve failed Reach x12 (hitting from too far away)Hover the line for the measured value, the limit and the player's ping. Click it, or run /wave lookup, to open the record. The verdict score weighs every flag and fades over 2 days. It is an estimate, not proof. The console gets one line per player and check every 30 seconds.
Punishments
Each check counts flags separately. At mitigate Wave makes that check stricter, at kick it kicks, at ban it bans for ban-days. Set limits per check under punishments.checks. With mode: simulate the player sees a title saying what would have happened.
False flags
- Set
movement.debug: trueand run/wave reload. - Let the player do the same thing again.
- Send
movement-debug.logand anything inreports/on Discord. - Set debug back to
false.
If the same tiny miss repeats at one spot, Wave stops setting the player back and writes a report, so a bug never traps anyone. It never does this for a player caught by a real miss in the last 10 seconds.
Updating
- Stop the server.
- Replace the old Wave jar in
plugins/with the new one. - Keep the
plugins/Wavefolder. - Start the server and run
/wave status.
Client area
Sign in with Discord at the client area. Pick a server at the top. Overview shows who is online, alerts over 24 hours, 7 days or 30 days, the checks that fire most and the most flagged players. Click any player for their full page: what each check saw in plain words, flags per day, sessions, ping, client, names and alts.
Wave network
Every Wave server reports joins, flags and bans to the cloud. When a player joins, Wave looks at their record on other owners' Wave servers. If they were banned elsewhere, flagged on two or more other servers, or share an IP with a banned account, Wave marks them as watched: staff get told, mitigations last longer and the cloud checks lose suspicion more slowly. Watched players are never banned for it.
You only ever see counts, like "flagged on 3 other Wave servers", never which servers. IP addresses are never stored: the cloud keeps a keyed hash, enough to match alts and IP bans.
Bans
Ban a player from their page or the Bans tab, on one server or several of yours, for a set time or forever, optionally with their IP (catches alts on the same connection). Wave kicks them right away if they are online and on every join after that. The kick message shows a ban id so your staff can find the ban. Unban from the same tab.
Team
Add staff by Discord user id on the Team page. Roles: Manager (everything but the license), Admin (view, ban, webhooks), Moderator (view, ban), Developer (view, webhooks), Viewer (view only). Staff pick your servers from the server list after signing in.
Webhooks
Settings, Webhooks: paste a Discord webhook URL and Wave posts alerts (at most once a minute per player and check), bans and watched players. An HTTPS endpoint gets the same events as JSON, for log tools such as Grafana Loki or Elastic, or your own bot:
{ "event": "alert", "at": 1795400000000, "title": "Steve failed reach x3",
"player": "uuid", "name": "Steve", "check": "reach", "vl": 3, "detail": "3.41 blocks (limit 3.05)" }Player limit and bursts
Your license has a size: players online at once (across all your servers) and how many servers may connect. Pick it on the pricing page and change it any time on the License page. Players over the limit can play, but the cloud doesn't check them until someone leaves; the overview says how many. A new server over your server count is refused until another one has been off for a day. Burst tokens double the player limit for 30 minutes, for events and peaks: 2 a month, 4 from 100 players, 6 from 300, 10 from 600.
API and events
Other plugins can react to Wave. Download WaveMinecraft-api.jar from Settings in the client area, add it as a compile only dependency and put softdepend: [Wave] in your plugin.yml.
| Event | When |
|---|---|
WaveFlagEvent | A player failed a check. Cancellable: hides the alert and skips punishment for this flag. May be async. |
WaveMitigateEvent | Wave makes a check stricter for a player. Cancellable, length can be changed. May be async. |
WavePunishEvent | Wave is about to kick or ban (automatic or from the dashboard). Cancellable, so you can use your own ban plugin. Main thread. |
WaveCloudEvent | The server (re)connected to the cloud. Async. |
@EventHandler
public void onFlag(WaveFlagEvent e) {
if (e.getCheck().equals("reach") && e.getVl() > 10) {
// your own logic
}
}
WaveAPI wave = WaveAPI.get(); // null while Wave isn't running
int chance = wave.verdict(uuid); // 0 to 100, an estimate from recent flags
Map<String, Integer> flags = wave.flags(uuid);
boolean watched = wave.watched(uuid); // flagged or banned on other Wave servers
wave.setExempt(uuid, true); // every check off until restart