T00thpick1 пре 12 година
родитељ
комит
0b18ae8ff2

+ 7 - 4
src/main/java/com/gmail/nossr50/events/skills/abilities/McMMOPlayerAbilityActivateEvent.java

@@ -1,12 +1,13 @@
 package com.gmail.nossr50.events.skills.abilities;
 package com.gmail.nossr50.events.skills.abilities;
 
 
 import org.bukkit.entity.Player;
 import org.bukkit.entity.Player;
+import org.bukkit.event.Cancellable;
 
 
 import com.gmail.nossr50.datatypes.skills.AbilityType;
 import com.gmail.nossr50.datatypes.skills.AbilityType;
 import com.gmail.nossr50.datatypes.skills.SkillType;
 import com.gmail.nossr50.datatypes.skills.SkillType;
 import com.gmail.nossr50.events.skills.McMMOPlayerSkillEvent;
 import com.gmail.nossr50.events.skills.McMMOPlayerSkillEvent;
 
 
-public class McMMOPlayerAbilityActivateEvent extends McMMOPlayerSkillEvent {
+public class McMMOPlayerAbilityActivateEvent extends McMMOPlayerSkillEvent implements Cancellable {
 
 
     private AbilityType abilityType;
     private AbilityType abilityType;
     private boolean cancelled;
     private boolean cancelled;
@@ -16,7 +17,10 @@ public class McMMOPlayerAbilityActivateEvent extends McMMOPlayerSkillEvent {
         abilityType = skill.getAbility();
         abilityType = skill.getAbility();
         cancelled = false;
         cancelled = false;
     }
     }
-    
+
+    /**
+     * @return The ability type involved in this event
+     */
     public AbilityType getAbilityType() {
     public AbilityType getAbilityType() {
         return abilityType;
         return abilityType;
     }
     }
@@ -24,9 +28,8 @@ public class McMMOPlayerAbilityActivateEvent extends McMMOPlayerSkillEvent {
     public boolean isCancelled() {
     public boolean isCancelled() {
         return cancelled;
         return cancelled;
     }
     }
-    
+
     public void setCancelled(boolean value) {
     public void setCancelled(boolean value) {
         this.cancelled = value;
         this.cancelled = value;
     }
     }
-
 }
 }