Change Vault hook to use new per-world perms system
This commit is contained in:
@@ -3,7 +3,6 @@ package me.lucko.luckperms.users;
|
||||
import lombok.Getter;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import me.lucko.luckperms.LuckPermsPlugin;
|
||||
import me.lucko.luckperms.data.Datastore;
|
||||
import me.lucko.luckperms.exceptions.ObjectAlreadyHasException;
|
||||
|
||||
import java.util.Map;
|
||||
@@ -74,16 +73,6 @@ public abstract class UserManager {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Saves a user object in the datastore
|
||||
* @param user the user to save
|
||||
* @param datastore the datastore
|
||||
*/
|
||||
public void saveUser(User user, Datastore datastore) {
|
||||
user.refreshPermissions();
|
||||
datastore.saveUser(user, success -> {});
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a user to the default group
|
||||
* @param user the user to give to
|
||||
|
||||
Reference in New Issue
Block a user