Interface FlickPlayer


public interface FlickPlayer
A player that completed the Flick handshake on this server. Everything here is reported by the client and can be forged by a modified client — use it for features and UX, never as an anti-cheat guarantee.
  • Method Details

    • getPlayer

      org.bukkit.entity.Player getPlayer()
    • getUniqueId

      UUID getUniqueId()
    • getVersion

      String getVersion()
      Flick Client version, e.g. 0.1.0+1.21.11.
    • getMinecraftVersion

      String getMinecraftVersion()
      Minecraft version reported by the client, e.g. 1.21.11.
    • getProtocolVersion

      int getProtocolVersion()
      Protocol version spoken by the client (currently 1).
    • getEnabledModules

      Set<String> getEnabledModules()
      Module ids the player currently has enabled (updated live via state messages).
    • getCapabilities

      Set<String> getCapabilities()
      Message families the client understands (waypoints, modules, notify, ...).
    • allows

      boolean allows(FlickFeature feature)
      Whether the player allows this API category in their client settings.
    • getWaypointIds

      Set<String> getWaypointIds()
      Ids of waypoints this server currently shows to the player.
    • getDisabledModules

      Set<String> getDisabledModules()
      Modules currently forced off for this player (config + API).
    • getLastReportedMods

      Optional<List<String>> getLastReportedMods()
      Last mod list reported by the client (after FlickAPI.requestMods(Player)); client-reported and spoofable.
    • getHandshakeTime

      long getHandshakeTime()
      Epoch millis of the handshake.