Fix #getDefaults for users

This commit is contained in:
Luck 2016-09-15 16:54:12 +01:00
parent 831e882db0
commit 6165fcbb21
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -28,7 +28,6 @@ import lombok.NonNull;
import me.lucko.luckperms.api.sponge.LuckPermsService; import me.lucko.luckperms.api.sponge.LuckPermsService;
import me.lucko.luckperms.api.sponge.LuckPermsUserSubject; import me.lucko.luckperms.api.sponge.LuckPermsUserSubject;
import me.lucko.luckperms.api.sponge.simple.SimpleCollection; import me.lucko.luckperms.api.sponge.simple.SimpleCollection;
import me.lucko.luckperms.api.sponge.simple.SimpleSubject;
import me.lucko.luckperms.users.User; import me.lucko.luckperms.users.User;
import me.lucko.luckperms.users.UserManager; import me.lucko.luckperms.users.UserManager;
import org.spongepowered.api.service.context.Context; import org.spongepowered.api.service.context.Context;
@ -128,6 +127,6 @@ public class UserCollection implements SubjectCollection {
@Override @Override
public Subject getDefaults() { public Subject getDefaults() {
return new SimpleSubject("default", service, this); return service.getDefaults();
} }
} }