mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-28 05:35:26 +01:00
Update class name in API docs (#26)
parent
67bdb4b2d2
commit
f3017a9baa
@ -93,7 +93,7 @@ It can be obtained in a number of ways.
|
||||
When the plugin is enabled, an instance of `LuckPerms` will be provided in the Bukkit ServicesManager. (obviously you need to be writing your plugin for Bukkit!)
|
||||
|
||||
```java
|
||||
RegisteredServiceProvider<LuckPermsApi> provider = Bukkit.getServicesManager().getRegistration(LuckPerms.class);
|
||||
RegisteredServiceProvider<LuckPerms> provider = Bukkit.getServicesManager().getRegistration(LuckPerms.class);
|
||||
if (provider != null) {
|
||||
LuckPerms api = provider.getProvider();
|
||||
|
||||
@ -218,4 +218,4 @@ The CompletableFuture class can initially be very confusing to use (it's still a
|
||||
* The vast majority of LuckPerms' work is done in async tasks away from the server thread.
|
||||
* With that in mind, it would be silly to call LuckPerms events synchronously - meaning that, without exception, all events listeners are called asynchronously.
|
||||
|
||||
Please keep in mind that many parts of Bukkit, Sponge and the Minecraft server in general are not thread-safe, and should only be interacted with from the server thread. If you need to use Bukkit or Sponge methods from within LuckPerms event listeners or callbacks, you need to perform your action using the scheduler.
|
||||
Please keep in mind that many parts of Bukkit, Sponge and the Minecraft server in general are not thread-safe, and should only be interacted with from the server thread. If you need to use Bukkit or Sponge methods from within LuckPerms event listeners or callbacks, you need to perform your action using the scheduler.
|
||||
|
Loading…
Reference in New Issue
Block a user