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.
Doesn't work on 1.13.1 getting error when trying to use command,
Love this plugin. No bugs, and no problems.
== WTF It Don't Work with Bungee commands :/server plz remake the game version 1.8 ==//
In reply to mkcoldwolf:
Please Help!
Does this work with Citizens NPCs? I Use Citizens but when it says i'm supposed to right click the npc, nothing happens!
Please Help!
This plugin is great keep up the good work! I also have a suggestion for your next plugin can you add like add a bangui next kinda like mineplex's gui
If you do /ban (player) (reason) It will pop up gui and you can customize it If ban player then it will show this message to all players BanGUI >> (sender) has banned (player) for (reason).
This will show up on players screen all in middle You have been banned for (time) by (sender) (reason) Unfairly banned appeal at (website)
Why I put sender BECAUSE I KNOW WHAT IT MEANS!!!! It means the player WHO USED THE FREAKING COMMAND!!! or console ;)
I'm sorry but this plugin...No
May I receive some assistance? Whenever I reload my server, the command with the npc gets removed. I was wondering if there was a way to prevent this. Thanks
@Kevdude0625 Kevdude0625, Remove the "/" before the command. It works like console.
Someone help me
I tried /commandnpcs add sudo_%player%_/spawn
doesnt work
:(
@T6xyz
Use the Essentials 'sudo' command, e.g. sudo %player% warp coolhouse
Sudo makes the player run the command. It can be ran from the console to make the player run the command.
If you don't want to use Essentials, I have a plugin called 'BetterSudo' (Google it) on another site, which is just a simple utility for doing it.
How do I make a shop, please help I need it for my Server. Also how do you make a warp mob like mineplex does?
waiting for the uncoming features!
@EarlyReflex
Thanks for letting me know. Working on removing the need for _ in the commands for the next version.
Nice plugin that works pretty fine under controlled circumstances, but can make you hit a brickwall pretty fast if you're not careful!
Trying to input a command that has period(s) in it (eg. pex user playerX add this.or.that.perm) breaks the plugin, completely. The command then cannot be removed from npc by using "/commandnpc remove", even after a restart.
New commands cannot be put into new npcs either. Editing the file to remove offending npc breaks the plugin too. A bit annoying when it's your 27th npc, and that one mistake requires you to blank out everything and restart from scratch.
It also makes it impossible for NPCs to talk, since speech sentences tend to include periods.
And to a lesser degree, how to add a command that has underscores in its arguments?
@Cronos2212
Don't put the "/" in the command. It runs them like it is the console.
Hello,
This plugin seems good, however NPC's are not executing commands when I click them. I get no errors when srtting one up, and I tried setting it so it would run the command "/broadcast Test", but when I click it nothing happens.
I run Spigot 1.8, and commandnpcs 1.4
Please help?
1k downloads!
Dayum, 600 downloads!
500 downloads! Update 1.3: Now works with any mob!