CommandNPCs
CommandNPCs
Makes any mob run commands, as an NPC! This is a simple plugin, so a good plugin without all the rubbish big plugins come with.
All commands will be ran from the console!
Update 1.4: Disabling AI now works on all versions.
Update 1.3.2: Fixed villager shops.
Update 1.3: Now works with any mobs!
Update 1.2.1: Slight issue with the plugin.yml. Now fixed :)
Update 1.2: Added setting to disable all AI and villager damage! See changelog.
Commands
/commandnpcs - Main command. Shows usage.
/commandnpcs cancel - Cancels any admin commands that are active (add, remove).
/commandnpcs add <command> - Adds a command to an NPC. Note, use _ for spaces. See the 'Example usage'.
/commandnpcs remove - Removed all commands from an NPC.
Permissions
commandnpcs.use - Allows the use of CommandNPCs. By default, players have this.
commandnpcs.admin - Allows the use of admin commands (add, remove, cancel).
Variables
%player% replaces with the player's name.
%next% signifies the next command.
Example usage
/commandnpcs add broadcast_Hello!%next%heal_%player%
This will assign '/broadcast Hello' and '/heal Sponges' to the npc.
Source code
All on my personal site, http://spongybacon.com/npcs. Please note that spongybacon.com is a personal site and is not affilliated with dev.bukkit.org - all downloads and viewings are at your own risk.
Upcoming features
- Make commands run from player.
- Add per npc permissions for running the command, from that npc.
400 downloads!
@jackoleary
Spawn a villager with anything, then use the command to add commands to the villager :)
How do I make an NPC? Do I just place down a villager and add a command to him?
Almost 300 downloads? :o
Over 200 downloads!
@madtomic
Ah I see. Good idea, i'll add that as a feature in the next version.
@uLeikSponges
Thank you, I understand this does not require citizens.
I haven't test this but I will let you know when I do on 1.7.10
What I mean by customPerm. The way it works, this is a separate customPerm to use the command bind to the NPCs
example:
/npc addcmd <in console(true/false)> <customPerm(noPerm)> <command>
what this does is when you set an optional customPerm the player needs to have the customPerm in order to right or left click the NPC. If the player does not have this. They can't interact with the NPC.
This is not the perm to use this plugin as this is just for using the command that is bind to the NPC.
madtomic
Version 1.2
Now has an option in the config called 'disable-ai' - set this to 'true', and all npcs with commands assigned will not move, take damage or have any default villager behaviour!
@madtomic
CommandNPC requires Citizens, this doesn't :P
BTW, does this work on 1.7? It (should) work on 1.7. If not, send me your version and i'll compile with that version.
Will you add customPerm to use the NPC? This way you can only allowed player with the perm to use the NPC. commandnpcs.use - Allows the use of CommandNPCs. By default, players have this. If you want to take this away, you should 'negate' the permission. In permissionsex, it is - -commandnpcs.use
Thanks :)
Similar to this CommandNPC http://dev.bukkit.org/bukkit-plugins/cmdnpc/
Anyway, looks great!
BTW, does this work on 1.7? Will you add customPerm to use the NPC? This way you can only allowed player with the perm to use the NPC.
@TWSSYesterday
Agreed :3
Pretty dank plugin we got here.