In this episode of the Spigot MC Plugin series, I show you how to obtain an instance of your plugin's main class in another class. This is something that has to be commonly done for doing things like accessing your config.yml file or scheduling tasks. #Spigot #SpigotTutorial
My code: https://github.com/Spigot-Plugin-Deve...
Join the Community! - https://rebrand.ly/discordlink
Want to Support the Channel?
Become a Member: / @kodysimpson
or: https://paypal.me/kodysimpson?locale....
My Socials:
Github: https://github.com/KodySimpson
Instagram: / kody_a_simpson
Twitter: / kodysimp
0:00 - Introduction
0:50 - Method #1: Static getter method
4:20 - Method #2: Constructor injection
7:01 - Conclusion
8:07 - Outro
More Videos coming soon.
Leave a comment for any future video suggestions.
Sur cette page du site, vous pouvez voir la vidéo en ligne Spigot Plugin Development - 7 - Passing the Plugin Instance durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Kody Simpson 16 novembre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 23,460 fois et il a aimé 517 téléspectateurs. Bon visionnage!