crwdns19618:0crwdne19618:0

crwdns19619:0:javadoc:crwdne19619:0

crwdns19620:0:javadoc:crwdnd19620:0:javadoc:crwdnd19620:0:javadoc:crwdnd19620:0:javadoc:crwdne19620:0

crwdns19621:0crwdne19621:0

  • crwdns19622:0crwdne19622:0

crwdns19623:0crwdne19623:0

crwdns19624:0crwdne19624: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);
}

crwdns41910:0crwdne41910:0

Note

crwdns19626:0crwdne19626:0

Note

crwdns41911:0crwdne41911:0