Search in sources :

Example 1 with PlayerExecutorBridge

use of de.dytanic.cloudnet.api.player.PlayerExecutorBridge in project CloudNet by Dytanic.

the class CloudServer method getPlayerAndCache.

@Deprecated
public void getPlayerAndCache(UUID uniqueId) {
    CloudPlayer cloudPlayer = CloudAPI.getInstance().getOnlinePlayer(uniqueId);
    if (cloudPlayer != null) {
        cloudPlayer.setPlayerExecutor(new PlayerExecutorBridge());
        this.cloudPlayers.put(uniqueId, cloudPlayer);
    }
}
Also used : CloudPlayer(de.dytanic.cloudnet.lib.player.CloudPlayer) PlayerExecutorBridge(de.dytanic.cloudnet.api.player.PlayerExecutorBridge)

Aggregations

PlayerExecutorBridge (de.dytanic.cloudnet.api.player.PlayerExecutorBridge)1 CloudPlayer (de.dytanic.cloudnet.lib.player.CloudPlayer)1