CommandNPC is a plugin inspired by the server Mineplex, which adds a new function to NPCs. It allows users to run commands by simply right clicking on a Citizens NPC. Requires Citizens 2!
Commands and Permissions
To set up the npc with the commands you need the permission 'commandnpc.admin'
-
/npc addcmd <-c> <-o> <-p your.custom.permission> <-v price> [command] - Add a command to be executed upon clicking the selected NPC.
-
The -c flag runs the command through the console.
-
The -o flag runs the command as an op.
-
The -v flag charges the player the specified amount, when running the command.
-
The -p flag requires the player to have the specified permission in order for the command to be run.
-
-
/npc resetcmds - Remove all commands from the selected NPC.
-
You can use '%name' in commands as a placeholder for the user who is clicking the NPC.
How to setup the NPC
-
Edit config.yml to your likings
-
Select the NPC you wish to add commands too.
-
Use the command 'addcmd' (Syntax listed above) to add the commands you wish.
-
These commands will be saved.
-
If you wish to remove the commands simply use the 'resetcmds' command. (Syntax listed above)
Github
-
https://github.com/messageofdeath/CommandNPC (Not up to date)
===== Donations =====
If you like what you see and want to support the development of this plugin and any other plugins I decide to create, you can donate to the developers! Just go to the upper right of this page.
If you like what you see and want to support the development of this plugin and any other plugins I decide to create, you can donate to the developers! Just go to the upper right of this page.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.8, 1.9, 1.10
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
CommandNPC [1.8-1.11.2] is a free Minecraft Java mod. Compatible with Minecraft 1.8, 1.9, 1.10, 1.11. Downloaded 15,895 times (via Spigot). Download it and open it directly in the game.