Examples of SecondaryAbilityEvent


Examples of com.gmail.nossr50.events.skills.secondaryabilities.SecondaryAbilityEvent

        return event;
    }

    public static SecondaryAbilityEvent callSecondaryAbilityEvent(Player player, SecondaryAbility secondaryAbility) {
        SecondaryAbilityEvent event = new SecondaryAbilityEvent(player, secondaryAbility);
        mcMMO.p.getServer().getPluginManager().callEvent(event);

        return event;
    }
View Full Code Here

Examples of com.gmail.nossr50.events.skills.secondaryabilities.SecondaryAbilityEvent

        mcMMO.p.getServer().getPluginManager().callEvent(event);
        return (event.getChance() * activationChance) > Misc.getRandom().nextInt(activationChance) && !event.isCancelled();
    }

    public static boolean activationSuccessful(SecondaryAbility skillAbility, Player player) {
        SecondaryAbilityEvent event = EventUtils.callSecondaryAbilityEvent(player, skillAbility);
        return !event.isCancelled();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.