CommandNPC 1.9.1

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

  1. messageofdeath
    Tested Minecraft Versions:
    • 1.7
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    Source Code:
    https://github.com/messageofdeath/CommandNPC
    Contributors:
    razorrider7
    [​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.

Recent Updates

  1. CommandNPC v1.9.1!
  2. CommandNPC v1.9.0!
  3. CommandNPC v1.8.9!

Recent Reviews

  1. Wolf_Boy42
    Wolf_Boy42
    5/5,
    Version: 1.9.1
    I don't understand what all the fuss it about it not working on 1.13.2, it works completely fine. Any issues people have, they should just reset their configs.
  2. Mamabeau
    Mamabeau
    5/5,
    Version: 1.9.1
    I've always used this plugin.
    If you are having issues with it, check your config, most likely you have an error somewhere.

    Its an honest to god great plugin for what you need, you just need to know how to use it ;)
  3. Mithrandir
    Mithrandir
    1/5,
    Version: 1.9.1
    Garbage plugin. No support, no functionality. Just write yourself a script with Denizen instead.

    Ok, gotta be honest, the situation with this plugin may have currently changed, it's been like half a year since I last tried it, but the fact that the developer used to provide null assistance and the plugin kept wiping it's config on every server restart doesn't change.

    This is just an honest review.
  4. lightPlugins
    lightPlugins
    5/5,
    Version: 1.9.1
    works perfect on 1.13.2 with citizens 2.
    No errors or bugs.
    Great plugin, great work
  5. taylorfin16
    taylorfin16
    3/5,
    Version: 1.9.1
    It's pretty useful, but whenever I try to do /npc cmdadd -c command it doesn't work and just puts on a massive cooldown.
  6. Dariusztmt
    Dariusztmt
    5/5,
    Version: 1.9.1
    Wow this plugin is exelent :)
    I vote for this plugin five stars.
    And I have a problem my one npc have a cape how remove cape from npc please help.
  7. 09TheMobLordXx
    09TheMobLordXx
    3/5,
    Version: 1.9.1
    I need help it won't let me use it and I have Citizens 2 it says this "[12:16:20 INFO]: ---------------------{CommandNPC Error}---------------------
    [12:16:20 INFO]: Topic
    [12:16:20 INFO]: Required Dependencies
    [12:16:20 INFO]:
    [12:16:20 INFO]: Citizens 2 not found! commandnpc will now shut down.
    [12:16:20 INFO]:
    [12:16:20 INFO]: Class: commandnpc Method: onEnable()
    [12:16:20 INFO]:
    [12:16:20 INFO]: ---------------------{CommandNPC Error}---------------------
    [12:16:20 INFO]: [CommandNPC] Disabling CommandNPC v1.9.1
    [12:16:20 INFO]: [CommandNPC] Disabling BungeeCord Support"
    Please help me and btw I have used this plugin before and its great! but i need help now and also I'm using it on 1.8
  8. muzyeh
    muzyeh
    5/5,
    Version: 1.9.1
    not support 1.13.1
    ----------------------------------------------------------------------
  9. Romuux
    Romuux
    5/5,
    Version: 1.9.1
    This plugins is just FUCKING AWESOME !
    Ideal for make your pnj daily reward, for make ANYTHINGS you want with your NPC.
    I love you man THANKS U !
  10. Roadhog360
    Roadhog360
    5/5,
    Version: 1.9.1
    Ignore below reviews; plugin works fine with no issues. I'm on Spigot 1.8.8. Not sure if others are just using outdated Citizens.