mirror of
https://github.com/WiIIiam278/HuskSync.git
synced 2025-12-23 16:49:19 +00:00
refactor: move unregister to common API module
This commit is contained in:
@@ -76,14 +76,6 @@ public class BukkitHuskSyncAPI extends HuskSyncAPI {
|
|||||||
instance = new BukkitHuskSyncAPI(plugin);
|
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}.
|
* Returns a {@link OnlineUser} instance for the given bukkit {@link Player}.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -77,6 +77,14 @@ public class HuskSyncAPI {
|
|||||||
return instance;
|
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
|
* Get a {@link User} by their UUID
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user