Advertisement
Guest User

IgniteInformation

a guest
Sep 1st, 2014
1,161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.96 KB | None | 0 0
  1. package me.coolade.korra.abilities;
  2.  
  3. import com.projectkorra.ProjectKorra.ProjectKorra;
  4. import com.projectkorra.ProjectKorra.Ability.AbilityModule;
  5. import com.projectkorra.ProjectKorra.Element;
  6.  
  7. public class IgniteInformation extends AbilityModule {
  8.  
  9.     /*
  10.      * This registers the ability with the AbilityModule class. It is important
  11.      * that the string is EXACTLY how you want the ability to appear in-game.
  12.      */
  13.     public IgniteInformation() {
  14.         super("Ignite");
  15.     }
  16.  
  17.     /*
  18.      * This returns the Description that will be seen when someone does /bending
  19.      * help [YourAbilityName]
  20.      */
  21.     public String getDescription() {
  22.         return "Left click an enemy and they will instantly burst into flames.";
  23.     }
  24.  
  25.     /*
  26.      * This returns the name of the Author of the Ability. Use your own username
  27.      * if it is your own project. This will be used for debugging.
  28.      */
  29.     public String getAuthor() {
  30.         return "Coolade";
  31.     }
  32.  
  33.     /*
  34.      * Much like the getAuthor(), mainly used for Debugging. Also allows you to
  35.      * sort of set a release pattern for your ability.
  36.      */
  37.     public String getVersion() {
  38.         return "v1.0.0";
  39.     }
  40.  
  41.     /*
  42.      * Returns the element as a string. It is important you use the Element
  43.      * class here. If you do not specify an element, the ability will NOT load
  44.      * properly.
  45.      */
  46.     public String getElement() {
  47.         return Element.Fire.toString();
  48.     }
  49.  
  50.     /*
  51.      * This just checks whether or not it is a sneak ability. Reason is, some
  52.      * other abilities wont work if you are sneaking, so this is our simple
  53.      * check for it.
  54.      */
  55.     public boolean isShiftAbility() {
  56.         return false;
  57.     }
  58.  
  59.     /*
  60.      * This method is ran each and every time the ability loads. So if you need
  61.      * to register any events, schedule any tasks, this is where you do it.
  62.      */
  63.     public void onThisLoad() {
  64.         ProjectKorra.plugin.getServer().getPluginManager()
  65.                 .registerEvents(new IgniteListener(), ProjectKorra.plugin);
  66.     }
  67.  
  68.     /*
  69.      * Stops any progressing Bending.
  70.      */
  71.     public void stop() {
  72.  
  73.     }
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement