Asto Connect
The server plugin for Asto Client: golden star in the server list, rules, waypoints, displays and statistics.
What it does
- Golden star in the server list of Asto Client and the launcher: "Asto Compatible Server".
- Rules: you lock features of the Asto Client (for example freecam or zoom). A server can only lock, never force anything.
- Waypoints of your server show up on the players' Asto map.
- Custom displays (kills, coins, rank …) as a block in the HUD.
- Trust: you learn who uses the Asto Client and has a verified Asto account.
- Statistics: how many Asto players, for how long, peak and versions (
/asto stats). - Discord status with data from your server (through the launcher).
Installation
- Download the file
AstoConnect.jaron the download page under "Other". - Put it into the
plugins/folder of your server (Paper, Spigot, Folia, BungeeCord, Waterfall or Velocity). It is always the same file. - Restart the server. The settings are then in
plugins/AstoConnect/config.yml. - Enter your public address (next section) so that the server gets the star.
Networks with a proxy: install the plugin on the proxy and enter the address there. The backend servers get the plugin too but leave address empty: they do not register and only provide rules, waypoints and displays.
Address and star
Set address in config.yml to the address players connect with (up to 5, with a port only if it is not 25565), or in game with /asto address play.example.com. The plugin then registers with Asto and proves that the address belongs to your server. There are two ways, both automatic:
- By IP: the A/AAAA record of the address (or the target of the SRV record
_minecraft._tcp.<host>if no port is given) points to the IP your server goes online with. Then there is nothing more to do. - By TXT record: create a TXT record at your DNS provider (example below). This helps, for example, behind a proxy service or when the address points to a different IP.
| Name | _asto.play.example.com |
|---|---|
| Type | TXT |
| Value | asto-verify=<Server-ID> |
Your server ID and the finished TXT value are shown by the command /asto verify (along with the state of the addresses). The plugin reports every 5 minutes; each address is re-checked at most every 10 minutes. After confirmation it takes up to 10 minutes until players see the star. Addresses in a private network (for example localhost or 192.168.…) are never confirmed.
Configuration
Excerpt from plugins/AstoConnect/config.yml (the same keys on all platforms). Every module has a switch; apply changes with /asto reload.
language: auto
address: ""
modules: {rules: true, waypoints: true, displays: true, presence: true, identity: true, stats: true, registry: true}
rules:
disable: [freecam, zoom]
worlds: {}
servers: {}
waypoints:
- {id: spawn, name: Spawn, x: 0, y: 64, z: 0, world: world, color: "#FFAA00", icon: star}
displays:
- {id: kills, label: Kills, value: "{kills}", icon: sword}
presence: {details: "{server}", state: "{world} · {online}/{max}"}
identity: {on-asto-join-commands: [], on-verified-join-commands: []}
stats: {keep-days: 90}
language:auto,deoren(language of the messages).rules.disableapplies to everyone;rules.worlds(world → list, Bukkit family) andrules.servers(backend name → list, proxy) apply in addition.waypoints: icondot,star,flag,home,shop,pvporportal; at most 200.displays: at most 12; icontext,sword,coin,crown,heart,star,clockorshield. Placeholders:{player}{kills}{deaths}{playtime}{balance}{rank}{world}{online}{max}; with PlaceholderAPI also%…%. If a source (Vault, PlaceholderAPI) is missing, the placeholder stays empty.identity: console commands ({player},{uuid}) when an Asto player or a player with a verified Asto account joins.stats.keep-days: how long the daily figures are kept on your server.
Commands
/asto (also /astoconnect), only with the permission astoconnect.admin (default: operators and console).
status | state of the plugin: connection to Asto and addresses |
|---|---|
players | players with the Asto Client (version, verified) |
stats [day|week|month] | figures for a day, week or month |
waypoint add <id> <name> [#farbe] | create a waypoint at your position |
waypoint remove <id> | remove a waypoint |
waypoint list | list all waypoints |
rules | currently locked features |
reload | reload the configuration |
address <host> | set the public address |
verify | show the server ID and the finished TXT value for the DNS record |
Rule identifiers
You enter these identifiers under rules.disable. The Asto Client locks the feature as long as any source (proxy or backend) locks it. It ignores unknown identifiers; new ones will be added later.
freecam | freecam (free camera) |
|---|---|
zoom | zoom |
fullbright | fullbright |
minimap | minimap window |
radar | entities on the map |
cave | cave view |
waypoints | show own waypoints |
coords | coordinates in HUD and map |
shortcuts | command shortcuts |
inventory_tools | sorting and "move all" |
block_info | block info |
replay | recording (replay) |
stream | livestream to the phone app |
app_chat | chat to the phone app |
Platforms
A single JAR runs on Bukkit, Spigot, Paper, Folia, BungeeCord/Waterfall and Velocity. The plugin does not depend on a Minecraft version: new versions work as long as the platform stays compatible.
API for plugin developers
Other plugins use Asto Connect through the package de.astocraft.connect.api. The entry point is AstoConnect.get().
- Queries:
isAstoPlayer(uuid),clientVersion(uuid),isVerified(uuid). - Sending:
setDisplay/removeDisplay(displays per player),setWaypoints,lockFeature(uuid, id)(lock a rule identifier). - Events: Asto player joined/left (Bukkit:
AstoPlayerJoinEventandAstoPlayerQuitEvent; proxy: listener interface).
AstoConnect api = AstoConnect.get();
if (api.isAstoPlayer(uuid) && api.isVerified(uuid)) {
// ...
}
Privacy
The plugin only sends the Asto server details about the server (name, address, platform, versions, player counts) and daily figures, never player names or players' IP addresses. Only if you use the check for an Asto account are the UUIDs of players who themselves report the Asto Client sent to Asto for comparison; they are not stored. The Asto Client only tells servers "I am Asto" (version, language) and never runs commands from the server. More details are in the privacy policy.