mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-24 11:38:40 +01:00
Updated Developer API (markdown)
parent
481bd89d88
commit
d1342f0388
@ -356,9 +356,7 @@ public boolean addPermission(User user, String permission) {
|
||||
System.out.println("Successfully set permission!");
|
||||
|
||||
// refresh the user's permissions, so the change is "live"
|
||||
// this method is blocking, but it's fine, because this callback is
|
||||
// ran async.
|
||||
user.refreshPermissions();
|
||||
user.refreshCachedData();
|
||||
|
||||
}, api.getStorage().getAsyncExecutor());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user