crwdns138067:0crwdne138067:0

Warning

crwdns138069:0crwdne138069:0

crwdns138071:0:javadoc:crwdne138071:0

crwdns138073:0:javadoc:crwdnd138073:0:javadoc:crwdnd138073:0:javadoc:crwdnd138073:0:javadoc:crwdne138073:0

crwdns138075:0crwdne138075:0

  • crwdns138077:0crwdne138077:0

crwdns138079:0crwdne138079:0

crwdns138081:0crwdne138081: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);
}

crwdns138083:0crwdne138083:0

Note

crwdns138085:0crwdne138085:0

Note

crwdns138087:0crwdne138087:0