Make User constructor protected. Closes #18.

This commit is contained in:
Luck 2016-10-01 22:56:57 +01:00
parent 4787361e66
commit c88600adda
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -62,13 +62,13 @@ public abstract class User extends PermissionHolder implements Identifiable<User
@Setter
private String primaryGroup = null;
User(UUID uuid, LuckPermsPlugin plugin) {
protected User(UUID uuid, LuckPermsPlugin plugin) {
super(uuid.toString(), plugin);
this.uuid = uuid;
this.name = null;
}
User(UUID uuid, String name, LuckPermsPlugin plugin) {
protected User(UUID uuid, String name, LuckPermsPlugin plugin) {
super(uuid.toString(), plugin);
this.uuid = uuid;
this.name = name;