Asto Connect

The server plugin for Asto Client: golden star in the server list, rules, waypoints, displays and statistics.

Download the plugin

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

  1. Download the file AstoConnect.jar on the download page under "Other".
  2. Put it into the plugins/ folder of your server (Paper, Spigot, Folia, BungeeCord, Waterfall or Velocity). It is always the same file.
  3. Restart the server. The settings are then in plugins/AstoConnect/config.yml.
  4. 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
TypeTXT
Valueasto-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, de or en (language of the messages).
  • rules.disable applies to everyone; rules.worlds (world → list, Bukkit family) and rules.servers (backend name → list, proxy) apply in addition.
  • waypoints: icon dot, star, flag, home, shop, pvp or portal; at most 200.
  • displays: at most 12; icon text, sword, coin, crown, heart, star, clock or shield. 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).

statusstate of the plugin: connection to Asto and addresses
playersplayers 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 listlist all waypoints
rulescurrently locked features
reloadreload the configuration
address <host>set the public address
verifyshow 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.

freecamfreecam (free camera)
zoomzoom
fullbrightfullbright
minimapminimap window
radarentities on the map
cavecave view
waypointsshow own waypoints
coordscoordinates in HUD and map
shortcutscommand shortcuts
inventory_toolssorting and "move all"
block_infoblock info
replayrecording (replay)
streamlivestream to the phone app
app_chatchat 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: AstoPlayerJoinEvent and AstoPlayerQuitEvent; 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.