NoAI plugin - Disable or Enable moving and target 1.2

Disable/Enable moving and target for entities

  1. Tejdik
    Contributors:
    The_TadeSK (tade159SK)
    Disable or enable moving and target for mobs

    THIS PLUGIN ONLY WORKS ON SPIGOT: 1.8, 1.8.3, 1.8.7
    THIS PLUGIN WORKS ON JAVA 7 AND JAVA 8
    IF YOU HAVE PROBLEM, SEND ME PM


    FEATURES:
    • Enable/Disable to set/remove NoAI for mobs that will be spawned
    • Enable/Disable to set/remove NoAI for all mobs in world
    • Enable/Disable to set/remove NoAI for mobs near you
    • Easy to use
    • API for set/remove NoAI for your entities
    COMMANDS:
    • /noai - Basic command
    • /noai cmds - Basic command for view all commands
    • /noai enable - Enable NoAI for mobs that will be spawned
    • /noai disable - Disable NoAI for mobs that will be spawned
    • /noai all set - Set NoAI for all mobs in world
    • /noai all remove - Remove NoAI for all mobs in world
    • /noai near set - Set NoAI for all mobs near you (20 blocks)
    • /noai near remove - Remove NoAI for all mobs near you (20 blocks)
    PERMISSIONS:
    • Player must be OP
    API:
    Code (Text):
    //Set NoAI for your entity
    Player player = event.getPlayer();
    //This is me entity
    Blaze entity = (Blaze)player.getWorld().spawnEntity(player.getLocation(), EntityType.BLAZE);
    //Set NoAI
    NoAI.setNoAI(entity);

    //Remove NoAI for your entity
    Player player = event.getPlayer();
    //This is me entity
    Blaze entity = (Blaze)player.getWorld().spawnEntity(player.getLocation(), EntityType.BLAZE);
    //Remove NoAI
    NoAI.removeNoAI(entity);
    This plugin usign Metrics
    NongFILLTH and MrBruno like this.