9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-23 08:39:19 +00:00

refactor: move unregister to common API module

This commit is contained in:
William278
2024-01-24 23:32:35 +00:00
parent f7e3104e6b
commit 85706d97c5
2 changed files with 8 additions and 8 deletions

View File

@@ -76,14 +76,6 @@ public class BukkitHuskSyncAPI extends HuskSyncAPI {
instance = new BukkitHuskSyncAPI(plugin);
}
/**
* <b>(Internal use only)</b> - Unregister the API for this platform.
*/
@ApiStatus.Internal
public static void unregister() {
instance = null;
}
/**
* Returns a {@link OnlineUser} instance for the given bukkit {@link Player}.
*

View File

@@ -77,6 +77,14 @@ public class HuskSyncAPI {
return instance;
}
/**
* <b>(Internal use only)</b> - Unregister the API for this platform.
*/
@ApiStatus.Internal
public static void unregister() {
instance = null;
}
/**
* Get a {@link User} by their UUID
*