Silence exception on #giveDefaultIfNeeded. Resolves #26

This commit is contained in:
Luck 2016-10-13 19:25:31 +01:00
parent 60e6ae6e23
commit 74f9283f18
No known key found for this signature in database
GPG Key ID: EFA9B3EC5FD90F8B

View File

@ -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());