Examples of strikeLightningEffect()


Examples of org.bukkit.World.strikeLightningEffect()

        Location location = player.getLocation();
        boolean globalEffectsEnabled = AdvancedConfig.getInstance().getKrakenGlobalEffectsEnabled();

        if (globalEffectsEnabled) {
            world.strikeLightningEffect(location);
            world.strikeLightningEffect(location);
            world.strikeLightningEffect(location);

            world.playSound(location, Sound.GHAST_SCREAM, Misc.GHAST_VOLUME, Misc.getGhastPitch());
            mcMMO.p.getServer().broadcastMessage(ChatColor.RED + AdvancedConfig.getInstance().getServerUnleashMessage().replace("(PLAYER)", player.getDisplayName()));
View Full Code Here

Examples of org.bukkit.World.strikeLightningEffect()

        Location location = player.getLocation();
        boolean globalEffectsEnabled = AdvancedConfig.getInstance().getKrakenGlobalEffectsEnabled();

        if (globalEffectsEnabled) {
            world.strikeLightningEffect(location);
            world.strikeLightningEffect(location);
            world.strikeLightningEffect(location);

            world.playSound(location, Sound.GHAST_SCREAM, Misc.GHAST_VOLUME, Misc.getGhastPitch());
            mcMMO.p.getServer().broadcastMessage(ChatColor.RED + AdvancedConfig.getInstance().getServerUnleashMessage().replace("(PLAYER)", player.getDisplayName()));
        }
View Full Code Here

Examples of org.bukkit.World.strikeLightningEffect()

        boolean globalEffectsEnabled = AdvancedConfig.getInstance().getKrakenGlobalEffectsEnabled();

        if (globalEffectsEnabled) {
            world.strikeLightningEffect(location);
            world.strikeLightningEffect(location);
            world.strikeLightningEffect(location);

            world.playSound(location, Sound.GHAST_SCREAM, Misc.GHAST_VOLUME, Misc.getGhastPitch());
            mcMMO.p.getServer().broadcastMessage(ChatColor.RED + AdvancedConfig.getInstance().getServerUnleashMessage().replace("(PLAYER)", player.getDisplayName()));
        }
        else {
View Full Code Here

Examples of org.bukkit.World.strikeLightningEffect()

           
            entity.teleport(targetLocation);
            try {
                String methodName = world.getClass().getMethod("strikeLightningEffect", Location.class).getName();
                if ((!methodName.isEmpty()) && (entity instanceof Player) && (!plugin.settingsManager.disableLightning) && (plugin.permissionsManager.hasPermission((Player) entity, plugin.permissionsManager.lightning))) {
                    world.strikeLightningEffect(targetLocation);
                }
            } catch (Exception ex) {
                if (plugin.settingsManager.logSleNotFound) {
                    TppLogger.Log("strikeLightningEffect() not found. Is your craftbukkit build up to date?");
                }
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.