crwdns118507:0crwdne118507:0

crwdns118509:0:javadoc:crwdne118509:0

crwdns118511:0:javadoc:crwdnd118511:0:javadoc:crwdnd118511:0:javadoc:crwdnd118511:0:javadoc:crwdne118511:0

crwdns118513:0crwdne118513:0

  • crwdns118515:0crwdne118515:0

crwdns118517:0crwdne118517:0

crwdns118519:0crwdne118519:0

import java.util.Optional;
import java.util.UUID;

import org.spongepowered.api.Sponge;
import org.spongepowered.api.entity.living.player.User;
import org.spongepowered.api.service.user.UserStorageService;

public Optional<User> getUser(UUID uuid) {
    Optional<UserStorageService> userStorage = Sponge.getServiceManager().provide(UserStorageService.class);
    return userStorage.get().get(uuid);
}

crwdns118521:0crwdne118521:0

Note

crwdns118523:0crwdne118523:0

Note

crwdns118525:0crwdne118525:0