refactor: move `unregister` to common API module

feat/data-edit-commands
William278 1 year ago
parent f7e3104e6b
commit 85706d97c5

@ -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
* *

Loading…
Cancel
Save