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!");
|
System.out.println("Successfully set permission!");
|
||||||
|
|
||||||
// refresh the user's permissions, so the change is "live"
|
// refresh the user's permissions, so the change is "live"
|
||||||
// this method is blocking, but it's fine, because this callback is
|
user.refreshCachedData();
|
||||||
// ran async.
|
|
||||||
user.refreshPermissions();
|
|
||||||
|
|
||||||
}, api.getStorage().getAsyncExecutor());
|
}, api.getStorage().getAsyncExecutor());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user