Make User constructor protected. Closes #18.

This commit is contained in:
Luck
2016-10-01 22:56:57 +01:00
Unverified
parent 4787361e66
commit c88600adda
@@ -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;