Skip to content

Banning clients from using ServerSync

R edited this page Mar 27, 2020 · 2 revisions

There may be times where you wish to stop a particular user from accessing ServerSync.

To do this you can make use of the file banned-ips.json, this is the same file that Minecraft servers use.

If you do not have this file then create it in the same folder as ServerSync.

Structure:

[
  {
    "ip": "127.0.0.1",
    "created": "2020-03-27 23:37:12 +1300",
    "source": "Server",
    "expires": "forever",
    "reason": "Banned by an operator."
  }
]

ServerSync only cares about the ip entry.

If you are using server commands to ban clients then you will want to use the command ban-ip <address>