Utilizing Race Ability Modules

Assuming you know how to manipulate and customize abilities (if not, see Configuring Race Abilities), there is also support for you to put in your own ability jars. Within your plugin directory, you should see a folder called modules. This is where you drop in your ability modules.

Over time as this plugin evolves, community-created modules will probably start circulating around the Discord server. If you are interested in making your own, see Hooking Into PwingRaces Externally.

Aside from all that information, assuming you have a module you'd like to install and utilize. The first step is dropping the module in the modules folder. Once you have done that, you can just reload PwingRaces with /race reload and in console, you should get a little message saying your module successfully loaded!

The next part is very easy - simply defining this new ability within the ability option of your race ability. In console, you may have noticed a package name and dots separating them (e.g. net.pwing.ability.CustomAbility). The ability name as well as the package name MUST be defined in order for this to properly work.

Here is an example: customability: ability: net.pwing.ability.CustomAbility ability-item: stone_sword required-permission: customability cooldown: 10 custom-option1: true custom-option2: 5 # etc. etc. And that for the most part should cover custom ability modules.