Two ways
| DNS record | Plugin channel | |
|---|---|---|
| Setup | One TXT record, no code | A few lines in a plugin or mod |
| Takes effect | Within half an hour of pressing Check below | At once |
| Covers | Your domain and every subdomain | The connection it is sent on: one server, or one backend behind a proxy |
| Lasts | Until you remove the record | Until the player leaves or switches server |
| Servers joined by IP | Not covered | Covered |
You can use both. A player is held by both lists together: a module named in either one is off. Rules we keep ourselves for a few networks, such as Freelook on Hypixel, apply as well.
DNS record
You publish a TXT record on your server's domain. Our server reads it and adds your rules to the list every syky client downloads. After you publish the record, press Check below once: that is how our server learns your domain has one. Clients refresh the list every half hour, and on joining a server when their copy is over ten minutes old. From then on our server re-reads your record every few hours by itself.
A record on example.net covers example.net and every name under it: mc.example.net, play.example.net and so on. Players who join by IP address alone are not covered, because there is no domain to read a record from.
- Name
_syky.<your domain>, for example_syky.example.net- Type
- TXT
- Value
v=syky1; block=<id>,<id>- Example
v=syky1; block=freelook,zoom
- Ids are lowercase and separated by commas, up to 64 of them. A HUD element's id starts with
hud_, likehud_coords. Every id is in the table under Make your rules. block=with nothing after it is a valid record that blocks nothing.- Keep one record starting with
v=syky1on the name. - To lift the rules at once, set the value to
v=syky1; block=and press Check. A deleted record stops applying once two of our scheduled lookups miss it, up to about eight hours. - Streamer Mode is ignored. An id the current client doesn't have is kept, so a newer client can use it, and Check warns about it in case it is a typo.
- Anything malformed makes the whole record invalid, and none of it applies: an uppercase id, an empty item as in
a,,b, more than 64 ids, or over 1024 characters. Check says which.
Plugin channel
syky client registers the plugin channel syky:rules. Your server, or the proxy in front of it, sends a plugin message on it, and the client switches the listed modules and HUD elements off at once.
- Channel
syky:rules- Body
- UTF-8 JSON, at most 4096 bytes
- Example
{"v":1,"block":["freelook","zoom"]}
- The ids are the same as in the DNS record.
"block":[]lifts the rules. - Each message replaces the one before it, so always send the whole list. A proxy and the server behind it sending separate lists would undo each other: send from one place.
- A message the client can't read is ignored whole, and the last good one stays in force: an id outside
a-z,0-9and_, more than 64 ids, or JSON that isn't strict. - The rules last for the current connection only. The client clears them on every join, so send them after the player joins, and again after every backend switch on a proxy.
- Paper and Spigot deliver a plugin message only to a client that has registered its channel, so send once syky has registered
syky:rules, as the example below does. - The client never replies on the channel.
Minimal examples
Each sends the same rules, Freelook and Zoom off, to every player. Swap in your own body from Make your rules.
Bukkit API, as a plugin on the game server.
import java.nio.charset.StandardCharsets;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerRegisterChannelEvent;
import org.bukkit.plugin.java.JavaPlugin;
public final class SykyRules extends JavaPlugin implements Listener {
private static final String CHANNEL = "syky:rules";
private static final byte[] RULES =
"{\"v\":1,\"block\":[\"freelook\",\"zoom\"]}".getBytes(StandardCharsets.UTF_8);
@Override
public void onEnable() {
getServer().getMessenger().registerOutgoingPluginChannel(this, CHANNEL);
getServer().getPluginManager().registerEvents(this, this);
}
// Paper and Spigot deliver a plugin message only to a client that registered its
// channel, so send when syky registers it, not on join.
@EventHandler
public void onRegister(PlayerRegisterChannelEvent event) {
if (CHANNEL.equals(event.getChannel())) {
event.getPlayer().sendPluginMessage(this, CHANNEL, RULES);
}
}
}On the proxy. Runs after the first join and after every backend switch.
import com.velocitypowered.api.event.Subscribe;
import com.velocitypowered.api.event.player.ServerPostConnectEvent;
import com.velocitypowered.api.plugin.Plugin;
import com.velocitypowered.api.proxy.messages.MinecraftChannelIdentifier;
import java.nio.charset.StandardCharsets;
@Plugin(id = "sykyrules", name = "SykyRules", version = "1.0")
public final class SykyRules {
private static final MinecraftChannelIdentifier CHANNEL =
MinecraftChannelIdentifier.from("syky:rules");
private static final byte[] RULES =
"{\"v\":1,\"block\":[\"freelook\",\"zoom\"]}".getBytes(StandardCharsets.UTF_8);
// For rules per backend, choose them by event.getPlayer().getCurrentServer().
@Subscribe
public void onConnected(ServerPostConnectEvent event) {
event.getPlayer().sendPluginMessage(CHANNEL, RULES);
}
}On the proxy. Runs after the first join and after every backend switch.
import java.nio.charset.StandardCharsets;
import net.md_5.bungee.api.event.ServerSwitchEvent;
import net.md_5.bungee.api.plugin.Listener;
import net.md_5.bungee.api.plugin.Plugin;
import net.md_5.bungee.event.EventHandler;
public final class SykyRules extends Plugin implements Listener {
private static final String CHANNEL = "syky:rules";
private static final byte[] RULES =
"{\"v\":1,\"block\":[\"freelook\",\"zoom\"]}".getBytes(StandardCharsets.UTF_8);
@Override
public void onEnable() {
getProxy().registerChannel(CHANNEL);
getProxy().getPluginManager().registerListener(this, this);
}
// ServerSwitchEvent fires once the player is on the new server. ServerConnectedEvent
// fires before that join, and the client clears its rules on every join.
@EventHandler
public void onSwitch(ServerSwitchEvent event) {
event.getPlayer().sendData(CHANNEL, RULES);
}
}A server-side mod with Fabric API. Yarn names, Minecraft 1.21.11.
import java.nio.charset.StandardCharsets;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.networking.v1.PayloadTypeRegistry;
import net.fabricmc.fabric.api.networking.v1.ServerPlayConnectionEvents;
import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking;
import net.minecraft.network.PacketByteBuf;
import net.minecraft.network.codec.PacketCodec;
import net.minecraft.network.packet.CustomPayload;
import net.minecraft.util.Identifier;
public final class SykyRules implements ModInitializer {
private static final byte[] RULES =
"{\"v\":1,\"block\":[\"freelook\",\"zoom\"]}".getBytes(StandardCharsets.UTF_8);
// The body is the raw UTF-8 JSON: no length prefix, nothing else.
record Rules(byte[] json) implements CustomPayload {
static final Id<Rules> ID = new Id<>(Identifier.of("syky", "rules"));
static final PacketCodec<PacketByteBuf, Rules> CODEC = PacketCodec.of(
(rules, buf) -> buf.writeBytes(rules.json()),
buf -> {
byte[] json = new byte[buf.readableBytes()];
buf.readBytes(json);
return new Rules(json);
});
@Override
public Id<Rules> getId() {
return ID;
}
}
@Override
public void onInitialize() {
PayloadTypeRegistry.playS2C().register(Rules.ID, Rules.CODEC);
ServerPlayConnectionEvents.JOIN.register((handler, sender, server) ->
ServerPlayNetworking.send(handler.getPlayer(), new Rules(RULES)));
}
}Make your rules
Every syky module and HUD element is listed below with its id. Type your domain and tick what to switch off: the DNS record and the plugin message are written as you go. Nothing leaves this page.
| Name | Id | Category |
|---|---|---|
| aspectratio | Visual | |
| autorespawn | Utilities | |
| blockoverlay | Visual | |
| borderless | Utilities | |
| bushyleaves | Visual | |
| capsfix | Utilities | |
| chatbinds | Utilities | |
| chatcamera | Utilities | |
| chatcopy | Utilities | |
| chatheads | Utilities | |
| chatping | Utilities | |
| chatreveal | Utilities | |
| chatstack | Utilities | |
| chunkborders | Utilities | |
| colorgrade | Visual | |
| commandfix | Utilities | |
| customcrosshair | Visual | |
| glint | Visual | |
| crystal | Visual | |
| fireoverlay | Visual | |
| fog | Visual | |
| customhearts | Visual | |
| customhitbox | Visual | |
| hurtcolor | Visual | |
| shield | Visual | |
| sky | Visual | |
| customsounds | Visual | |
| totem | Visual | |
| water | Visual | |
| disconnectconfirm | Utilities | |
| dropguard | Utilities | |
| durabilityguard | Utilities | |
| effectalerts | Visual | |
| fastgrass | Visual | |
| focusfade | Visual | |
| fogblur | Visual | |
| saturation | Utilities | |
| fov | Utilities | |
| freelook | Utilities | |
| fullbright | Visual | |
| healthring | Visual | |
| healthindicator | Visual | |
| hidearmor | Visual | |
| hidecosmetics | Advanced | |
| hotbarkeys | Utilities | |
| chathistory | Utilities | |
| inventorybackground | Visual | |
| itemphysic | Visual | |
| lightoverlay | Utilities | |
| lootbeams | Visual | |
| motionblur | Visual | |
| noshading | Visual | |
| particles | Visual | |
| pingtags | Visual | |
| pumpkinoverlay | Utilities | |
| pvpleaveconfirm | Utilities | |
| raindrops | Visual | |
| reconnectbutton | Utilities | |
| removals | Visual | |
| safeinteraction | Utilities | |
| selfnametag | Visual | |
| serverpackpriority | Utilities | |
| shulkerpreview | Utilities | |
| slothighlight | Utilities | |
| soundmixer | Visual | |
| autosprint | Utilities | |
| streamermode | Advanced | |
| targetesp | Visual | |
| thirdperson | Utilities | |
| tiertagger | Visual | |
| time | Visual | |
| tnttimer | Utilities | |
| togglesneak | Utilities | |
| tracker | Visual | |
| transparentchat | Utilities | |
| viewmodel | Visual | |
| weather | Visual | |
| wetsurfaces | Visual | |
| worldtint | Visual | |
| zoom | Utilities | |
| hud_potions | HUD | |
| hud_armor | HUD | |
| hud_boss_bar | HUD | |
| hud_bps | HUD | |
| hud_break_indicator | HUD | |
| hud_clock | HUD | |
| hud_combo | HUD | |
| hud_cooldowns | HUD | |
| hud_coords | HUD | |
| hud_cpu | HUD | |
| hud_date | HUD | |
| hud_day_counter | HUD | |
| hud_durability_alert | HUD | |
| hud_expiring_potions | HUD | |
| hud_fps | HUD | |
| hud_gpu | HUD | |
| hud_hotkeys | HUD | |
| hud_images | HUD | |
| hud_game_clock | HUD | |
| hud_inventory | HUD | |
| hud_item_counter | HUD | |
| hud_item_pickups | HUD | |
| hud_keystrokes | HUD | |
| hud_music | HUD | |
| hud_ping | HUD | |
| hud_playtime | HUD | |
| hud_ram | HUD | |
| hud_reach | HUD | |
| hud_scoreboard | HUD | |
| hud_server_ip | HUD | |
| hud_shield_timer | HUD | |
| hud_splash_accuracy | HUD | |
| hud_target | HUD | |
| hud_tps | HUD | |
| hud_uid | HUD | |
| hud_username | HUD | |
| hud_watermark | HUD |
DNS record
- Name
_syky.<your domain>Most DNS panels want only
_sykyhere and add your domain themselves.- Type
TXT- Value
v=syky1; block=Nothing picked yet: this record blocks nothing.
Plugin message on syky:rules
- Body
{"v":1,"block":[]}Send it as UTF-8 bytes. An empty list lifts the rules.
Check your record
Once the DNS record is published, check it here. Our server looks it up, shows what it read and puts it in force straight away. Players then get it at their next refresh.
What players see
- What you list is off only while the player is on your server. When they leave, it comes back as they had it.
- The menu marks each module “Off on” your server and the HUD's element list says the same beside each element. Pressing its key shows “Zoom is off on” your server instead of switching it on, and a message that switches off something the player had on says so once.
- The player's own settings never change. Their config doesn't record that your server existed.
What a server can't do
- Switch anything on. A record or a message can only switch modules off: never on, never change a setting, and never past the moment the player leaves.
- Switch Streamer Mode off. It stays as the player set it whatever a server lists.
- Read anything from players. syky client identifies itself only by registering the
syky:ruleschannel, and sends your server nothing else of its own. - Run anything on the client. A record or a message is a list of module ids, and the client reads only that list. Rules never come with code the client runs.
Questions
How do I add the record in my DNS panel?
Open the DNS settings of your domain where you manage it: your registrar or your DNS host. Add a record, set its type to TXT and type _syky in the Name or Host field. Most panels add your domain themselves and show the result as _syky.example.net. Paste the value into the Content or Value field without quotes, leave the TTL on automatic and save. If your panel asks for the full name, enter _syky.example.net, and make sure it does not end up as _syky.example.net.example.net.
My domain already has TXT records. Is that a problem?
No. Records such as SPF or a site verification sit on other names. The syky record has its own name, _syky, so it never mixes with them.
How long until players get the rules?
A plugin message works the moment the client gets it. A DNS record needs one press of Check on this page after you publish it: our server reads it then and there, and clients pick it up within half an hour, or sooner when a player joins a server. Once your record is known, our server re-reads it every few hours, so later edits also arrive on their own; Check makes them immediate. Players already on your server get the change while they play. A player who has turned syky's online features off gets it when they turn them back on.
How do I change or remove the rules?
Edit the record's value and press Check again. To lift every rule at once, set the value to v=syky1; block= and press Check. If you delete the record instead, the rules lift once our server's next two scheduled lookups miss it, which can take up to eight hours. With the plugin channel, send a new message; {"v":1,"block":[]} lifts the rules for the rest of the connection.
Check can't find my record.
A new record can take a few minutes to show up in DNS, and longer if an older answer was cached with a long TTL. Make sure the name is _syky. followed by your domain, the type is TXT and the value starts with v=syky1. To see what everyone else sees, run nslookup -type=TXT _syky.example.net or dig TXT _syky.example.net.
How can my server tell who plays with syky?
syky client registers the syky:rules channel, so it is among a player's registered plugin channels, for example in Player.getListeningPluginChannels() on Paper.
We run a network behind a proxy. Where do the rules go?
A DNS record covers the whole network, since players join through your domain. For rules that differ per backend, use the plugin channel: send from the proxy after each switch, or from a plugin on each backend. Either way the client clears channel rules on every join, so each backend's rules apply only there.
Where do I get help?
Ask in our Discord, or write to support@sykyclient.com.