Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.coolade.korra.abilities;
- import com.projectkorra.ProjectKorra.ProjectKorra;
- import com.projectkorra.ProjectKorra.Ability.AbilityModule;
- import com.projectkorra.ProjectKorra.Element;
- public class IgniteInformation extends AbilityModule {
- /*
- * This registers the ability with the AbilityModule class. It is important
- * that the string is EXACTLY how you want the ability to appear in-game.
- */
- public IgniteInformation() {
- super("Ignite");
- }
- /*
- * This returns the Description that will be seen when someone does /bending
- * help [YourAbilityName]
- */
- public String getDescription() {
- return "Left click an enemy and they will instantly burst into flames.";
- }
- /*
- * This returns the name of the Author of the Ability. Use your own username
- * if it is your own project. This will be used for debugging.
- */
- public String getAuthor() {
- return "Coolade";
- }
- /*
- * Much like the getAuthor(), mainly used for Debugging. Also allows you to
- * sort of set a release pattern for your ability.
- */
- public String getVersion() {
- return "v1.0.0";
- }
- /*
- * Returns the element as a string. It is important you use the Element
- * class here. If you do not specify an element, the ability will NOT load
- * properly.
- */
- public String getElement() {
- return Element.Fire.toString();
- }
- /*
- * This just checks whether or not it is a sneak ability. Reason is, some
- * other abilities wont work if you are sneaking, so this is our simple
- * check for it.
- */
- public boolean isShiftAbility() {
- return false;
- }
- /*
- * This method is ran each and every time the ability loads. So if you need
- * to register any events, schedule any tasks, this is where you do it.
- */
- public void onThisLoad() {
- ProjectKorra.plugin.getServer().getPluginManager()
- .registerEvents(new IgniteListener(), ProjectKorra.plugin);
- }
- /*
- * Stops any progressing Bending.
- */
- public void stop() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement