Wave docs

Install Wave, connect it to the cloud and tune it for your server.

Requirements

Install

  1. Redeem your key on the License page of the client area and download your jar.
  2. Stop the server and put the jar in plugins/.
  3. Start the server. Wave connects to the cloud on its own and the server shows up in your dashboard.
  4. Check the connection in game:
/wave status

First 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.

KeyDefaultWhat it does
cloud.url, cloud.key-Not used by licensed jars: they connect with the license built into the jar.
mitigation.enabledtrueMaster switch for cancelling anything. Off means alerts only.
mitigation.cancel-impossible-reachtrueCancel hits that are out of reach after lag compensation.
mitigation.cloud-mitigationtrueMake checks stricter for a player while the cloud flags them.
movement.enabledtrueMovement checks: Simulation, Velocity, NoSlow, GroundSpoof, Timer, Blink, BadPackets.
movement.setbackstrueSend a player back to their last valid spot when a movement check fails.
movement.debugfalseWrite every prediction miss to movement-debug.log. For false flag reports only.
punishments.modeoffoff alerts only, simulate shows a title instead, real kicks and bans.
punishments.mitigate5Flags of one check before Wave mitigates.
punishments.kick15Flags of one check before a kick.
punishments.ban40Flags of one check before a ban.
punishments.ban-days7Length 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-days7Debug files older than this are deleted.
storage.max-mb20A debug file bigger than this starts over.

Commands

Every command is under /wave (alias /wac) and has tab completion.

CommandWhat it does
/wave statusVersion, cloud connection and server id.
/wave pingRound trip time to the cloud.
/wave reconnectReconnect to the cloud now.
/wave reloadReload config.yml.
/wave alertsTurn alerts on or off for yourself.
/wave lookup <player>Open a player's record: verdict, checks, alerts, kicks.
/wave exemptTurn every check off for yourself until you toggle it or rejoin.
/wave cloudtestCheck 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

PermissionDefaultAllows
wave.adminopEvery /wave command.
wave.alertsopSeeing alerts and toggling them.
wave.exemptnobody/wave exempt. Being op is not enough. Other staff are told.

Files

FileWhat it is
config.ymlYour settings. Wave never rewrites it.
server-id.txtThis 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.logOnly 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

  1. Set movement.debug: true and run /wave reload.
  2. Let the player do the same thing again.
  3. Send movement-debug.log and anything in reports/ on Discord.
  4. 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

  1. Stop the server.
  2. Replace the old Wave jar in plugins/ with the new one.
  3. Keep the plugins/Wave folder.
  4. 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.

EventWhen
WaveFlagEventA player failed a check. Cancellable: hides the alert and skips punishment for this flag. May be async.
WaveMitigateEventWave makes a check stricter for a player. Cancellable, length can be changed. May be async.
WavePunishEventWave is about to kick or ban (automatic or from the dashboard). Cancellable, so you can use your own ban plugin. Main thread.
WaveCloudEventThe 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