Accessing
To integrate your plugin with Cloud, you need to use the CloudRegistry to retrieve a specific API. Here's how to properly hook into the Cloud API in your plugin.
I'm going to show an example of how to access the KitAPI.
There are three ways to access a specific API:
Basic Access –
CloudRegistry.cloud(String key)
(Simplest method)Namespace Access –
CloudRegistry.namespace(String namespace, String key)
Keyed Access –
CloudRegistry.keyed(CloudNamespacedKey.of(String namespace, String key))
Example Usage
Basic Access
Namespace Access
Keyed Access
That's it! Isn't that simple? You have now accessed an API component!
Last updated
Was this helpful?