Hook Command To Mob

Discussion in 'Plugin Requests' started by SayHi2uTube, Jul 30, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    SayHi2uTube

    Plugin category: General

    Suggested name: CommandMob

    What I want: I want a plugin where you can hook a command to a mob and when you right click on the mob you execute the command hooked to it.

    Ideas for commands: /cm create [command] - Have to be looking at a mob
    /cm remove - Have to be looking at a mob

    Ideas for permissions: cm.create cm.remove cm.reload

    When I'd like it by: Within the year.

    Citizens and CommandNPC does not work for me D:
     
  2. Offline

    AcePilot10

  3. Offline

    SayHi2uTube

    ._. Read what I said. Last line. It does not work for me.
     
  4. Offline

    plobnob

    @SayHi2uTube
    I can do this for you, shouldn't take too long.

    Plob.
     
  5. Offline

    SayHi2uTube

    Thanks :D
    I will huggle you <3
     
  6. Offline

    plobnob

    @SayHi2uTube
    Done.

    https://www.dropbox.com/s/ltnvzcx344a2rau/CommandMob.jar?dl=0

    Commands:
    • /cm create [command] - Assigns the typed command to the next mob you right click.
    • /cm remove - Removes the command from the next mob right clicked.
    • /cm reload - Reloads the plugins config files.
    Config:
    • Prefix - The prefix that will show before messages.
    Permissions:
    • cm.create - Permission node to give permission to assign commands.
    • cm.remove - Permission node to give permission to remove commands.
    • cm.reload - Permission node to give permission to reload the plugin config files.
    Hope that all works fine you. If you find any bugs or anything needs tweaking, tag me or inbox me and I can look into improving it for you!

    Plob.
     
    Last edited: Jul 30, 2015
  7. Offline

    SayHi2uTube

    Thanks. I will try it out as I'm on my phone right now. Can you upload this to bukkit because I think other people would like it too.

    When I do /cm, It says "Internal Server Error"

    I also tried it on another server and I doesn't work. Can you please do a tutorial on this please.

    Heres the error
    Code:
    9:35:39 PM [ERROR] Error occurred while enabling CommandMob v1.0.0 (Is it up to date?)
    9:35:39 PM java.lang.IllegalArgumentException: The embedded resource 'config.yml' cannot be found in plugins\CommandMob.jar
    9:35:39 PM at org.bukkit.plugin.java.JavaPlugin.saveResource(JavaPlugin.java:252) ~[Spigot183.jar:git-Spigot-26dfd01-5cb9b70]
    9:35:39 PM at org.bukkit.plugin.java.JavaPlugin.saveDefaultConfig(JavaPlugin.java:239) ~[Spigot183.jar:git-Spigot-26dfd01-5cb9b70]
    9:35:39 PM at com.plobnob.CommandMob.CommandMob.onEnable(CommandMob.java:44) ~[?:?]
    9:35:39 PM at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:321) ~[Spigot183.jar:git-Spigot-26dfd01-5cb9b70]
    9:35:39 PM at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:335) [Spigot183.jar:git-Spigot-26dfd01-5cb9b70]
    9:35:39 PM at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [Spigot183.jar:git-Spigot-26dfd01-5cb9b70]
    9:35:39 PM at org.bukkit.craftbukkit.v1_8_R2.CraftServer.loadPlugin(CraftServer.java:356) [Spigot183.jar:git-Spigot-26dfd01-5cb9b70]
    9:35:39 PM at org.bukkit.craftbukkit.v1_8_R2.CraftServer.enablePlugins(CraftServer.java:316) [Spigot183.jar:git-Spigot-26dfd01-5cb9b70]
    9:35:39 PM at net.minecraft.server.v1_8_R2.MinecraftServer.r(MinecraftServer.java:416) [Spigot183.jar:git-Spigot-26dfd01-5cb9b70]
    9:35:39 PM at net.minecraft.server.v1_8_R2.MinecraftServer.k(MinecraftServer.java:382) [Spigot183.jar:git-Spigot-26dfd01-5cb9b70]
    9:35:39 PM at net.minecraft.server.v1_8_R2.MinecraftServer.a(MinecraftServer.java:337) [Spigot183.jar:git-Spigot-26dfd01-5cb9b70]
    9:35:39 PM at net.minecraft.server.v1_8_R2.DedicatedServer.init(DedicatedServer.java:257) [Spigot183.jar:git-Spigot-26dfd01-5cb9b70]
    9:35:39 PM at net.minecraft.server.v1_8_R2.MinecraftServer.run(MinecraftServer.java:522) [Spigot183.jar:git-Spigot-26dfd01-5cb9b70]
    9:35:39 PM at java.lang.Thread.run(Unknown Source) [?:1.8.0_45]
    
    EDIT by Timtower: merged posts
     
    Last edited: Jul 31, 2015
Thread Status:
Not open for further replies.

Share This Page