Source-checkedAdmin & protection

CommandNPC

by messageofdeath · for Minecraft

Add Commands to your Citizens 2 NPC! 1.12 Ready (When Citizens comes out)

119KDownloads
9 yr agoLast updated
Spigot · PaperLoaders
1.12Latest game version

About CommandNPC

From SpigotMC

Add Commands to your Citizens 2 NPC! 1.12 Ready (When Citizens comes out)

[​IMG]​

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! Keep in mind, if you are an early adopter for any update. If it says unknown webpage, please wait until the BukkitDev staff approve the plugin first. Once approved you'll be able to see it. REQUIRES JAVA 8!

Commands and Permissions
(Now supports PlaceholderAPI)
​
To set up the npc with the commands you need the permission 'commandnpc.admin'
Be aware that flags that require additional input like [--v price], you need 2 dashes(-)!
  • /npc cmdadd [-c console] [-o Op] [-r random] [-i ignorePermMsg] [-l ignoreMoneyMsg] [--v price] [--t clickType] [--d delay] [--cd cooldown] [--p custom.permission.node] <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 -r flag picks a random command and executes that one command only.
    • The -i flag when true, noPerm message doesn't send
    • The -l flag when true, noMoney message doesn't send
    • The --v flag charges the player the specified amount, when running the command. (Numeric with decimal)
    • The --p flag requires the player to have the specified permission.
    • The --d flag is the amount of ticks that the command will be delayed by. (Integer input)
    • The --cd flag is a cooldown for the command in ticks. (20 ticks in a second)
    • The --t flag sets the clickType('left', 'right', or 'both') | This will default to the global setting in config.yml
  • /npc cmdinfo [id] - Gets various information about all the NPC commands
    • If you include the command 'id' it will only show information for that command.
    • You get the 'id' from using the 'cmdinfo' command
  • /npc cmdremove <id> - Removes a specific command
    • You get the 'id' from using the 'cmdinfo' command
  • /npc cmdset [-c console] [-o Op] [-r random] [-m cdMsg] [-i ignorePermMsg] [-l ignoreMoneyMsg] [--v price] [--t clickType] [--d delay] [--cd cooldown] [--p custom.permission.node] [command | cdMsg...]- Set various variables for the command
    • The -c flag runs the command through the console. (This will toggle between true/false)
    • The -o flag runs the command as an op. (This will toggle between true/false)
    • The -r flag picks a random command and executes that one command only.
    • The -m flag is when you have a cooldown amount specified. When the player is in a cooldown and attempt to use the NPC, it will send them this message. (Usage: /npc cmdset -m [cdMsg...]) Note: When using other flags the cdMsg as to be the last things within the command.
    • The -i flag when true, noPerm message doesn't send
    • The -l flag when true, noMoney message doesn't send
    • The --v flag charges the player the specified amount, when running the command. (Numeric with decimal)
    • The --p flag requires the player to have the specified permission.
    • The --d flag is the amount of ticks that the command will be delayed by. (Integer input)
    • The --cd flag is a cooldown for the command in ticks. (20 ticks in a second)
    • The --t flag sets the clickType ('left', 'right', or 'both')
    • You get the 'id' from using the 'cmdinfo' command
  • /npc cmdreset - Remove all commands from the selected NPC.
  • You can use '%name' in commands as a placeholder for the user who is clicking the NPC.
  • This plugin now supports a BungeeCord command. You may now use 'server <serverName>' to teleport people between servers!
How to setup the NPC
  1. Edit config.yml to your likings
  2. Select the NPC you wish to add commands too.
  3. Use the command 'cmdadd' (Syntax listed above) to add the commands you wish.
  4. These commands will be saved.
  5. If you wish to remove the commands simply use the 'resetcmds' command. (Syntax listed above)
Metrics by bStats
Github
===== 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.

Highlights

From source data

Game versions

Supports 6 Minecraft versions, the newest being 1.12.

Loaders

Runs on Spigot and Paper.

Footprint

Rated a light load on a server.

CommandNPC on Nxeon

From our catalogue
One-click install
Supported on Nxeon Minecraft servers, for Paper servers. We download it from SpigotMC, place it, and restart the server.
Server side
Required on the server
Server type needed
Spigot, Paper
Server load
light
Smallest plan we suggest
Minecraft — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
1.9.1, released 2017-07-14

Game versions by loader

LoaderGame versionsNewest
Paper1.7 to 1.12 (6 versions)1.12
Spigot1.7 to 1.12 (6 versions)1.12

From 10 recorded builds of CommandNPC.

Recent builds

BuildReleasedGame versionsLoaders
1.9.12017-07-141.7 to 1.12 (6 versions)Spigot, Paper
1.9.02017-07-05n/aSpigot, Paper
1.8.92017-06-11n/aSpigot, Paper
1.8.92017-06-05n/aSpigot, Paper
1.8.8.22017-05-21n/aSpigot, Paper
1.8.82017-05-18n/aSpigot, Paper

Run CommandNPC on a Minecraft server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on SpigotMC as “Admin”

Admin & protection

Permissions, moderation, anti-cheat and land protection for the people running the server.

Runs on your server

From source side support

SpigotMC lists CommandNPC as required on the server. Check its SpigotMC page to see whether players need it too.

Compatibility

Game
Minecraft
Loaders
SpigotPaper
Runs on
Serverrequired on the server
Game versions
1.12 and 5 earlier
Requires
One-click install needs a Paper server.

Verified at the source

  • ✓SpigotMCOfficial listing, checked 2026-10-01Open ↗
  • ✓Authormessageofdeath, as published on SpigotMC
  • ✓LicenseNot published by the sourceFree

CommandNPC, answered

Generated from the mod’s own source data.

Do my players need to install CommandNPC?

SpigotMC lists CommandNPC as required on the server. Check its SpigotMC page to see whether players need it too.

Which loaders does it support?

Spigot and Paper.

Is it free?

Yes. CommandNPC is free to download from SpigotMC.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run CommandNPC on a Minecraft server.

Deploy in about a minute from $4.99 a month, then add CommandNPC in one click.