CitizensCMD icon

CitizensCMD -----

Add commands to a Citizens NPC.




  • Updated dependencies
    • Spigot 1.20.6 -> 1.21.1
    • Citizens 2.0.34 -> 2.0.35
    • PlaceholderAPI 2.11.5 -> 2.11.6
    • Adventure Bukkit 4.3.2 -> 4.3.4
    • bStats 3.0.2 -> 3.1.0
----------, Oct 2, 2024

  • Updated dependencies
    • Spigot 1.20.4 -> 1.20.6
    • Citizens 2.0.33 -> 2.0.34
    • Adventure 4.16.0 -> 4.17.0
  • Improved update checker by closing its objects after use.
----------, May 10, 2024

  • Added Simplified Chinese language file thanks to and by jhqwqmc.
  • Added missing languages in the config comment.
  • Fixed a memory leak caused by PermissionsManager thanks to and by skykatik.
  • Updated Adventure to 4.16.0 from 4.15.0.
----------, Feb 25, 2024

  • Updated dependencies
    • Spigot 1.20.2 -> 1.20.4
    • PlaceholderAPI 2.11.4 -> 2.11.5
    • Adventure 4.14.0 -> 4.15.0
    • Adventure Platform 4.3.1 -> 4.3.2
----------, Dec 26, 2023

  • Updated dependencies
    • Spigot 1.20.1 -> 1.20.2
    • Citizens 2.0.31 -> 2.0.33
    • PlaceholderAPI 2.11.3 -> 2.11.4
    • Adventure Platform 4.3.0 -> 4.3.1
    • ConfigMe 1.3.0 -> 1.4.1
----------, Oct 26, 2023

  • Updated dependencies
    • Spigot 1.19.4 -> 1.20.1
    • Adventure 4.13.1 -> 4.14.0
----------, Jun 15, 2023

  • Fixed storing cooldown interactions in memory for NPCs with no cooldowns.
----------, May 26, 2023

  • Updated dependencies
    • PlaceholderAPI 2.11.2 -> 2.11.3
    • Adventure 4.13.0 -> 4.13.1
    • Adventure Bukkit 4.2.0 -> 4.3.0
    • bStats 3.0.1 -> 3.0.2
----------, May 10, 2023

  • Updated dependencies:
    • Spigot 1.19.3 -> 1.19.4
    • bStats 3.0.0 -> 3.0.1
    • Citizens 2.0.30 -> 2.0.31
    • Adventure 4.12.0 -> 4.13.0
----------, Mar 17, 2023

  • Fixed an issue with the remove command with invalid IDs.
----------, Feb 19, 2023

  • Updated to Spigot 1.19.3.
  • Updated to PlaceholderAPI 2.11.2.
  • Updated to Adventure 4.12.0.
  • Updated to Adventure Bukkit 4.2.0.
  • Misc changes.
----------, Dec 15, 2022

  • Made Citizens a hard depend instead of a soft depend, should fix some startup issues when you have a bunch of plugins and Bukkit wants to load Citizens before CitizensCMD.
  • Move all events to monitor.
  • NPC data is only removed when the NPC was removed by a player or the console.
  • Fix missing prefix on a listener registering error.
  • Fix an exception being ignored and not printed.
  • Some misc refactoring.
----------, Jun 21, 2022

  • Removed async data management.
  • Updated Citizens and Adventure.
----------, Jun 21, 2022

  • The plugin is now built against 1.19.
  • Removed the Citizens check config setting.
----------, Jun 7, 2022

  • The plugin now ignores all cancelled events.
  • Moved the NPC remove event into the correct class.
  • Completely reordered the plugin enabling to be cleaner.
  • Reduced the tick delay for loading cooldowns and added a tick delay
    for loading the data manager.
----------, May 3, 2022

  • Fixed Adventure not getting closed on plugin disable.
----------, Mar 31, 2022

  • Fixed Romanian bStats chart not working.
  • Changed some plugin.yml comments.
  • Cleaned up the code of the plugin, organized imports, used finals etc.
  • Fixed some utils not using Adventure.
  • Removed some unused utils.
  • Improved the update checker message.
  • Added the Spigot URL into the plugin.yml so it'll show up on /version CitizensCMD.
----------, Mar 30, 2022

Hey guys, I've taken over the CitizensCMD project as a maintainer role, I'm not here to necessary add new features unless they are PR'd to the project but I'm here to fix major issues and keep the plugin working with future Spigot, Citizens and Minecraft versions for the foreseeable future™️.

Today's update is pretty heavy due to the big amount of internal changes to the plugin but updating from 2.5.1 shouldn't be a problem, I've personally updated with 46 NPCs in my saves.yml, all with cooldowns, left and right-click commands just updating the jar and nothing else.

- Updated a mass amount of dependencies, including 1.18.2.
- Changed all the old references from the old repo to the new one.
- Cleaned up a mass amount of internal code.
- The plugin now uses Adventure for all messages and added MiniMessage support for NPC messages and language messages. Turned off by default (See the config).
- Moved the config framework to a new one that can also handle Config updates from version to version and fixed issues with newer Spigot comment support.
- Fixed JSON issues.
- Moved the command framework to a new one.
- Fixed some shading issues where the libraries wouldn't get relocated into the CitizensCMD package.
- Added me (HexedHero) as an author/maintainer in the plugin.yml, startup and config header.
- Updated bStats to 3.0.0
- Fixed some issues viewing the plugin's page on dark mode (Changed image text colors to match the gradient of the image above it and the headers white background)

The increase of filesize is simply from the new dependencies used, the config, command framework and adventure especially are big libraries.
Please report any issues over on the GitHub issue page at: https://github.com/HexedHero/CitizensCMD/issues
----------, Mar 21, 2022

As mentioned in the previous update I'll not be updating this plugin anymore.
This update wasn't even going to happen, but wanted to leave it at least working.
So here is update for 1.16.2.

As this will not be updated anymore, I suggest you move to using Citizens' built in commands instead https://wiki.citizensnpcs.co/NPC_Commands.
----------, Sep 9, 2020

Changes:
  • Fixed NPC permission set but that required restart.
  • Cooldown message will no longer send if it's empty on the language file.
  • Fixed help command to work on 1.16.

Lastly,

As some of you may know, Citizens for some time now already includes their own command system.
So I see no point in keeping updating this plugin.
The code is old and confusing so I really have no desire nor reason to keep it.
I'll say though, surprised how many of you use the plugin, and I'll thank you all for doing so, I made it 4 years ago as just a small plugin I used on my server and decided to release it, and I'm happy I did.
Anyways, I'll still be working on new plugins, I got a few almost ready to be posted, if you wanna know more about it or just chat around pass by my discord server https://mattstudios.me/discord. ;p

Thank you!
----------, Jul 5, 2020

CitizensCMD v2.4:

After many asked me to do it for so long I decided to open my own discord server to give support for CitizensCMD. You can join it here!

This is a re-upload of 2.4 to fix small bug.

Changes:
  • Complete rewrite of command system, no longer should give tab completion errors.
  • New cooldown time system, increases performance when spam clicking on an NPC that is on cooldown.
  • Changed permission "none" to "player" when running the command as a player to avoid confusion.
  • Fixed SMALL format for cooldown displaying as it was giving a random Null message.
  • Better config and messages system, no longer will miss out on anything and it'll auto update with new versions. Will also keep commentaries from now on. This should also fix error when trying to reload the plugin.
  • Better messages for start up of the plugin.
  • Fixed not enabling due to commons.
----------, Sep 30, 2019

CitizensCMD v2.4:

After many asked me to do it for so long I decided to open my own discord server to give support for CitizensCMD. You can join it here!

Changes:
  • Complete rewrite of command system, no longer should give tab completion errors.
  • New cooldown time system, increases performance when spam clicking on an NPC that is on cooldown.
  • Changed permission "none" to "player" when running the command as a player to avoid confusion.
  • Fixed SMALL format for cooldown displaying as it was giving a random Null message.
  • Better config and messages system, no longer will miss out on anything and it'll auto update with new versions. Will also keep commentaries from now on. This should also fix error when trying to reload the plugin.
  • Better messages for start up of the plugin.
----------, Sep 29, 2019

CitizensCMD v2.3.2:
Fixed priced NPC not confirming, caused by previous version.

If you encounter any please post it here to get it fixed!
Suggestions are also very welcome, click here to suggest a feature!
----------, Jul 7, 2019

CitizensCMD v2.3.1:
When copying an NPC with /npc copy, all the commands data will also be copied to the new NPC.

If you encounter any please post it here to get it fixed!
Suggestions are also very welcome, click here to suggest a feature!
----------, Jun 16, 2019

CitizensCMD v2.3:
Took some time but command delays are finally here!
To make that happen I changed the tag -d ( used to mean NPC display name) to -n and the tag -d now represents delay.
How to set a delay, when adding a command simply add -d <time> for example:
/npcmd add message This message will appear after 2 seconds! -d 2

Simple!
It supports numbers like .5 or 2.5 too!

Per NPC permission, this allows you to set a personal use permission to an NPC, this way a player needs that permission to use just that one NPC but can still use the others.
Example:
/npcmd permission set npc.use

A few more changes coming soon as I get more time!

If you encounter any please post it here to get it fixed!
Suggestions are also very welcome, click here to suggest a feature!
----------, Jun 14, 2019

CitizensCMD v2.2:
Hopefully completely fixed the cooldownds problem where the number would randomly go to many days. Because of the changes on how cooldowns are handled, the cooldowns.yml file will be reset, which means one click NPCs will be lost, I'm sorry, I tried to keep them but really had to reset all.
Moved the command /npcmd sound to /npcmd add sound, this makes it more flexible, which means you can now set multiple sounds to make it more interactive, will be even better when the next update comes (command delay will be added)!
Added the option to disable the self disable of the plugin if Citizens is not found, simply add " citizens-check: false" to your config if you want it.

The wiki has been updated for the new changes, click here to check.

If you encounter any please post it here to get it fixed!
Suggestions are also very welcome, click here to suggest a feature!
----------, Feb 23, 2019

IF YOU ARE STILL ON A VERSION BEFORE 2.0.
Migrating from CitizensCMD-1.2.2 to CitizensCMD-2.0 Guide


CitizensCMD v2.1:
Added /npcmd add message - allows you to send raw messages, supporting color.
Added tag -d to the message command, using this will make the message display the NPC name before the message.
Added /npcmd sound - allows you to play a sound when clicking an NPC.

For more information on the new commands read here.

If you encounter any please post it here to get it fixed!
Suggestions are also very welcome, click here to suggest a feature!
----------, Aug 12, 2018

READ EVERYTHING BEFORE UPDATING!

THIS VERSION IS A COMPLETE REWRITE AND A LOT OF THINGS CHANGED!


Before updating to the new version please follow this guide:
Migrating from CitizensCMD-1.2.2 to CitizensCMD-2.0 Guide

UPDATE WITH CAUTION!

Changes for v2.0:
saves.yml has a different structure.
cooldowns.yml also have a different structure.
Multi language support, currently supporting English, Portuguese, Bulgarian, Romanian, Norwegian and Chinese, if you want to help adding a new language feel free to PM me!
Priced NPC support.
Left and Right click support.
PlaceholderAPI support.
Timings fixes.
Overall improved performance in every single way.

Some bugs may appear as it is impossible to test everything.
If you encounter any please post it here to get it fixed!
Suggestions are also very welcome, click here to suggest a feature!
----------, Aug 3, 2018

Fixed some timings issues.
Updates is now only shown to OP's, was being displayed to all players.
OP's joining might still cause some high timings.

I'll be working on a bigger update soon which will fix more issues and add new features.
----------, Feb 21, 2018

Update:
Fix the most recent error on enable.
Added a faster more reliable update checker with more content.

Notice:
Feedback: I've been listening to everyone's feedback, I love most of your ideas and I'll be working on implementing them soon, so please be patient.
Performance: I am also aware of some performance issues, which I have been trying to improve with every update, but I am not good at performance, so if there is anyone who would be whiling to help me out with it please feel free to message me.

Cheers!
----------, Feb 12, 2018

Added support to /server command.
----------, Oct 18, 2017

  • Increased cooldown timer;
  • Multiple commands support;
  • New commands(list and edit);
  • Edited command remove;
  • One time use NPC by using -1 on the cooldown;
  • Better cooldown system;
  • New config option to choose cooldown display time, example, 10m or 10min or 10 minutes;
  • Improved performance.

This version might be buggy so please let me know if any bug is found!
----------, Jul 9, 2017

This is just a small update for 1.12.
I'll be reworking the plugin completely and adding more features.
Expect the 1.1.0 update in the next few days.
----------, Jul 5, 2017

Fixed high tick issues on player join.
Fixed errors on player join caused by previous update.
----------, Feb 28, 2017

Added support for version 1.11.2.
Added Messages.yml for custom messages.

Apologies for the inactivity on updates, more feature coming soon.
Leave a feedback about what you would want to be added.
----------, Feb 19, 2017

Fixing bugs that would affect the cooldown of an NPC, for example clicking on an NPC with no cooldown then adding a cooldown to it the counter would start from the time of the previous click.
----------, Oct 11, 2016

Fixed bugs that some commands would not be executed correctly and would give a "Unknown command." message.
----------, Oct 9, 2016

Now you can use %p% or %player% when adding the command and it will be replaced with the name of the player clicking the NPC.
----------, Oct 9, 2016

Resource Information
Author:
----------
Total Downloads: 317,200
First Release: Oct 9, 2016
Last Update: Oct 2, 2024
Category: ---------------
All-Time Rating:
134 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings