Configuration
AstralClasses is configured via plugins/AstralClasses/config.yml. Reload with /class reload (permission: class.command.reload).
config.yml
The main configuration file controls class system behaviour and which server groups have access to skills and double-jump.
Key | Type | Default | Description |
|---|---|---|---|
| String | — | The class assigned to new players. Must be a valid class defined in |
| int | — | Initial level for new players joining a class. |
| List\<String\> |
| Server groups (from AstralPaperAPI) where double-jump is enabled. If the current server's group appears here, double-jump features are active. |
| List\<String\> |
| Server groups where skills are enabled. If the current server's group appears here, the skill system (skill service, listeners, and casting) is initialized. |
| boolean |
| Optional. When |
Enable-groups semantics
The double-jump-enable-groups and skill-enable-groups keys use server group filtering. The plugin queries the current server's group via AstralPaperAPI.serverInformation().group() at startup:
If the group is in
skill-enable-groups,SkillServiceis constructed and loaded (which also loadsdouble-jump.yml), the input packet listener is registered, and ability/skill casting is live.If the group is not in
skill-enable-groups,SkillServiceis never constructed at all — abilities, cooldowns, and (see below) double jump are all unavailable, regardless ofdouble-jump-enable-groups.double-jump-enable-groupsis a second, narrower gate checked insideSkillService.tryTriggerSpace()— it only takes effect for groups that already passed theskill-enable-groupscheck.
For example, if your server group is tower and skill-enable-groups: [tower], skills are enabled; if the group is survival and only [tower] is listed, skills (and double jump) remain disabled.
Reloading configuration
The /class reload command reloads config.yml and refreshes:
Class definitions from
classes/Menu configuration from
menus/main.ymlDouble-jump settings from
double-jump.yml, and skill/ability state — both only ifSkillServicewas already constructed at plugin startup (i.e. the group was inskill-enable-groupson enable; see Commands —/class reload)The weapon class item supplier
Related configuration
Classes — Individual class definitions are documented at Classes. Class files reside in
plugins/AstralClasses/classes/and are loaded by the class service.Double-jump — Double-jump feature settings are documented at Double Jump. Configuration is stored in
plugins/AstralClasses/double-jump.yml.Menus — The main class menu is configured in
plugins/AstralClasses/menus/main.ymland opened via/class(permission:class.command.open).