From f3017a9baa463fd24a386fa9906b5579945610fe Mon Sep 17 00:00:00 2001 From: Tobi <43016900+Tobi406@users.noreply.github.com> Date: Tue, 26 Nov 2019 00:03:02 +0100 Subject: [PATCH] Update class name in API docs (#26) --- Developer-API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Developer-API.md b/Developer-API.md index 41b3007..abf5ba7 100644 --- a/Developer-API.md +++ b/Developer-API.md @@ -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 provider = Bukkit.getServicesManager().getRegistration(LuckPerms.class); +RegisteredServiceProvider 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. \ No newline at end of file +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.