Closed alixplayz closed 2 years ago
ServerTemplate
objects belong to the SubCreator
instance of a Host
. Once you get your hands on one, you will find that that method already exists.
How exactly would I call that from a Spigot Server running the SubServers.Client API?
By calling this one instead.
What Should Be Added
I would really like to see something like subAPI.getTemplates to get a list of all the subserver templates there all.
Why It Should be Added
In my case I need to make a custom gui to start servers with specific templates. With getTemplates I could automatically add new templates to the gui without doing any modifying with the code.
What's The Alternative
Every time I want to add a new server/event to the gui, I have to go in and manually change the gui to add that.