api.player() to find players and inspect their network presence. Prefer UUID lookup when you already know the player’s UUID because usernames can change.
Look up a player
Look up a player by UUID and check whether they are online before using their current server:get(UUID) returns null when SimpleCloud has no stored player with that UUID. You can also look up a player by their case-insensitive username:
CloudPlayer contains the state recorded when you queried it. Fetch the player again when a later action depends on their current presence.
List online players
Use the online player list when you need the players themselves, or request only the count:0 when no players are online.
Inspect player data
Connect a player
Callconnect(...) with the server name registered on the player’s proxy, such as lobby-1. Do not pass the server UUID.
Connecting players requires the simplecloud-api provider on the Velocity or BungeeCord proxy.
See Transfer a player to another server for a complete transfer workflow.
Kick a player
Pass an Adventure component as the reason shown to the player:simplecloud-api provider on the Velocity or BungeeCord proxy.
Send Adventure content
CloudPlayer implements Adventure’s Audience, so you can send messages, action bars, titles, sounds, boss bars, books, and player-list headers and footers.
simplecloud-api provider on the player’s Paper or Folia server.
Manage online time and properties
Player properties store custom string values for your plugins.
Online time must be between
0 and Integer.MAX_VALUE seconds. Property updates merge the supplied values with the existing map; delete methods remove only the specified keys.