-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CloudNet v4: API User-Documentation/Examples #1287
Comments
It's planned when the api is considered stable. As there are still some changes planned, it doesn't make much sense to write full guides just to change them again accordingly. |
Any forecast on how long it is going to take until there is a release? |
This comment was marked as outdated.
This comment was marked as outdated.
This thread is about examples for CloudNet 4. As far as I know the cloud permission system is going to be removed. Anyone actively using it might want to migrate to luckperms |
I have not used dependency injection before, and I hope to provide an example as soon as possible |
A quick summary for most use cases:
You can add as many parameters as you need.
The InjectionLayer with @name("module") is an InjectionLayer specifically for YOUR module. It inherits from the default CN InjectionLayers ( Services I have used so far
The PlayerManager is
Little more advanced
You can also inject object instances in constructors, to understand how that works I recommend taking a closer look at existing CloudNet modules like If you need more information on DI, I can recommend the jakarta specs and the Aerogel github README This should pretty much cover all basic usage. @derklaro correct me if I'm wrong about anything here pls |
very think @
very think u !!!!!! |
Describe the new feature
Add a dedicated examples project like there is in v3. It'd be a great help to have different examples on how to use the new dependency injection and how to find the classes you need, now that we do not have a central Driver that has all the methods.
Why do you need this feature?
It is a great help to all developers trying to migrate to v4
Alternatives
Open to other suggestions, otherwise no alternatives
Other
No response
Issue uniqueness
The text was updated successfully, but these errors were encountered: