mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Silence exception on #giveDefaultIfNeeded. Resolves #26
This commit is contained in:
parent
60e6ae6e23
commit
74f9283f18
@ -78,9 +78,7 @@ public class UserManager extends AbstractManager<UserIdentifier, User> {
|
||||
user.setPrimaryGroup("default");
|
||||
try {
|
||||
user.setPermission("group.default", true);
|
||||
} catch (ObjectAlreadyHasException ignored) {
|
||||
ignored.printStackTrace();
|
||||
}
|
||||
} catch (ObjectAlreadyHasException ignored) {}
|
||||
|
||||
if (save) {
|
||||
plugin.getDatastore().saveUser(user, Callback.empty());
|
||||
|
Loading…
Reference in New Issue
Block a user