forked from Upstream/mmocore
Fixed Sneaky Picky and Backstab
This commit is contained in:
parent
28c4653179
commit
b33f8dea42
@ -1,11 +1,14 @@
|
||||
package net.Indyuce.mmocore.skill;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.Particle;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
|
||||
import net.Indyuce.mmocore.MMOCore;
|
||||
import net.Indyuce.mmocore.api.player.PlayerData;
|
||||
import net.Indyuce.mmocore.api.skill.Skill;
|
||||
import net.Indyuce.mmocore.api.skill.SkillResult;
|
||||
@ -13,7 +16,7 @@ import net.Indyuce.mmocore.api.util.math.formula.LinearValue;
|
||||
import net.mmogroup.mmolib.api.DamageType;
|
||||
import net.mmogroup.mmolib.api.event.PlayerAttackEvent;
|
||||
|
||||
public class Backstab extends Skill {
|
||||
public class Backstab extends Skill implements Listener {
|
||||
public Backstab() {
|
||||
super();
|
||||
setMaterial(Material.FLINT);
|
||||
@ -23,6 +26,8 @@ public class Backstab extends Skill {
|
||||
addModifier("cooldown", new LinearValue(0, 0));
|
||||
addModifier("mana", new LinearValue(8, 1));
|
||||
addModifier("extra", new LinearValue(50, 20));
|
||||
|
||||
Bukkit.getPluginManager().registerEvents(this, MMOCore.plugin);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
@ -1,11 +1,14 @@
|
||||
package net.Indyuce.mmocore.skill;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.Particle;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.entity.LivingEntity;
|
||||
import org.bukkit.event.EventHandler;
|
||||
import org.bukkit.event.Listener;
|
||||
|
||||
import net.Indyuce.mmocore.MMOCore;
|
||||
import net.Indyuce.mmocore.api.player.PlayerData;
|
||||
import net.Indyuce.mmocore.api.skill.Skill;
|
||||
import net.Indyuce.mmocore.api.skill.SkillResult;
|
||||
@ -13,7 +16,7 @@ import net.Indyuce.mmocore.api.util.math.formula.LinearValue;
|
||||
import net.mmogroup.mmolib.api.DamageType;
|
||||
import net.mmogroup.mmolib.api.event.PlayerAttackEvent;
|
||||
|
||||
public class Sneaky_Picky extends Skill {
|
||||
public class Sneaky_Picky extends Skill implements Listener {
|
||||
public Sneaky_Picky() {
|
||||
super();
|
||||
setMaterial(Material.DIAMOND_SWORD);
|
||||
@ -23,6 +26,8 @@ public class Sneaky_Picky extends Skill {
|
||||
addModifier("cooldown", new LinearValue(0, 0));
|
||||
addModifier("mana", new LinearValue(8, 1));
|
||||
addModifier("extra", new LinearValue(50, 20));
|
||||
|
||||
Bukkit.getPluginManager().registerEvents(this, MMOCore.plugin);
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
|
Loading…
Reference in New Issue
Block a user