Pl3xNPC
Plugin: Simple NPC plugin to add life to your server.
Version: v3.0.1-SNAPSHOT
Build: CB 1.7.9 R0.1
BE SURE YOU UPDATE BKCOMMONLIB FOR YOUR CB BUILD!
Note: This plugin connects to Mojang's online UUID API to access players UUID's.
Description
Pl3xNPC is a simple plugin to add basic NPCs to your server and bring some life into it! These NPCs currently only look at players (or in any direction you specify, like a statue) and say simple 1-liner messages to them. They can also hold items and wear armor (even enchanted items or other items with special properties)! Not to mention, they can be ANY mob you want them to be, not just a player type.
Enjoy!
Links
Commands and Permissions
View the ChangeLog
Features
- Create any username or mob type NPC
- Premium usernames show their premium skins
- Multiple NPCs can have the same name
- Any mob type will work (creeper, pigzombie, cow, chicken, wither, etc)
- NPCs now have owners
- You can give your users the ability to create their own NPCs without the fear of messing with others' or the main config.
- NPCs can only be manipulated/deleted by their owner (including the armor/items).
- Server admins have the ability to bypass owners (with proper perm node).
- Limit the number of NPCs a user can create with permission nodes!
- Items can be given to an NPC!
- Select an NPC and use the command or right click with the item in hand to give any armor!
- Armor will automatically be worn!
- Ability for any item to be worn on an NPC's head (admin can set to enable/disable this feature)
- Must have the item to give (removes from your inventory) unless you have the 'canspawn' perm node
- All items given can be taken back by giving them something else (including air)!
- Select an NPC and use the command or right click with the item in hand to give any armor!
- NPCs can talk! (one-liner messages)
- Triggered when walking into a customizable message radius
- Admin can set the chat format (to match ANY chat plugin's style)
- Includes variables: {world} {npc} {name} {dispname}
- Chat styles and color codes supported!

-
View User Profile
-
Send Message
Posted Apr 8, 2013@BillyGalbreath
Both systems would be great :)
-
View User Profile
-
Send Message
Posted Apr 8, 2013@vivalaminecraft
Thats not a bad idea. I was evenutally going to make the NPCs have a built in trader shop, and your idea just sparked life into it. I completely forgot about the Villager trader window!
I'll start doing some research on how it all works, and find out exactly I have control over to change. I want to be able to trade things for money or money for things (Vault enabled econ plugin required), but I could definitely add in a setting to make the villager use the vanilla trading system (if possible).
-
View User Profile
-
Send Message
Posted Apr 8, 2013You are doing great work :) Thanks...
Any chance if you can make villagers with the ability to trade like normal? Would like to name them and keep them in place :P
-
View User Profile
-
Send Message
Posted Apr 7, 2013Latest dev builds (#36 and up) adds the ability to have the names of the NPCs over their heads, even if they are a mob type. By default, names will show. To disabled use the new command /npc set showmobname false
-
View User Profile
-
Send Message
Posted Apr 5, 2013Version 2.1 (Jenkins build #34) has been uploaded to Bukkit and is now waiting for staff approval.
Enjoy! ^_^
-
View User Profile
-
Send Message
Posted Apr 2, 2013Fixed a few major bugs in v2.0 like NPCs disappearing, and an error about ProtocolLib being a dependency. Not pushing a new release just yet, as there are more goodies on the way with the v2.1, but you can download it early now for the fixes from the Jenkins page linked above. Build #24 is the latest I'm testing out right now and it seems pretty solid so far.
Son't forget to hit up my Tickets section to report any bugs you find! I can't catch them all myself, and the sooner you report then the sooner I can fix them ;)
-
View User Profile
-
Send Message
Posted Mar 31, 2013Version 2.0 has been uploaded an in now in queue for Bukkit approval. You can get a copy early from my Jenkins page linked up above.
Please note that starting with v2.0 ProtoclLib is no longer needed at all, and that BKCommonLib is absolutely REQUIRED for this to work.
Please read up above to learn more about this new v2.0 system.
-
View User Profile
-
Send Message
Posted Mar 30, 2013It has come to my attention that some of the mob types are not working correctly. I thought it was only the Zombie mob type, which I fixed in the dev builds. I was wrong, and it is happening for other mobs as well.
With this new knowledge I decided to take a step back and look at the base of where this all started. NPCLib. Its a few files of code written by Top-Cat idk how many version of Minecraft ago. I got a working copy somewhere around 1.3.2 and have been updating it manually with each version change by looking at similar plugins (Citizens, etc) to see what the new obfuscated methods were in each new version. With 1.5.1 I was ahead of the game and found all the new methods myself. But the downside is after updating something so old for so long it just started to feel like hacks on top of hacks on top of hacks just to keep it going.
With that said, I decided to look into other methods. I already threw in the mix a soft dependency of ProtocolLib, which makes handling packets a little easier for me as a developer, and a little safer for you as a server administrator. It seemed like a good idea to rewrite the entire NPC base 100% dependent of ProtocolLib to not only handle the packets for mobtypes, but also to replace the direct NMS calls I've been doing this whole time. This way, the plugin wont break on every single Bukkit update (you would just download an updated ProtocolLib and it would work again).
So, I started doing my homework on it. I even talked to another developer of a similar plugin (Lenis0012) which I knew he used ProtocolLib in the past. He told me about BKCommonLib and how much easier it made things then even ProtocolLib, and on the plug side it updates more often. So I looked into it and indeed I would have to agree with him about it.
So with all this, 2 days ago I started rewriting the Pl3xNPC plugin from the ground up, again. This time, with an entire new base without any NPCLib or direct NMS calls. So far the results is a 50% smaller plugin, that runs noticeably faster on my local test server (no actual speed tests performed). I'm about 80% done with this rewrite, and only have a few more sub-commands left to rewrite using this new system (there's also a few new goodies in the mix that I threw in).
Thats pretty much it. Just thought I'd let you all know where I am and why there hasnt been any pushes to bitbucket in the last few days. Also, I normally dont give out ETAs, but with this I'm fairly certain I'll have it ready sometime mid afternoon tomorrow (about 12-18 hours from the time of this post). So keep an eye out on the Jenkins for it! Its going to take another 24+ hours after that for Bukkit to approve the file I upload for it to show up on this page.
-
View User Profile
-
Send Message
Posted Mar 29, 2013@StarTailslide
Values are self explanatory. The ones that aren't are told to you what they are. Most of them are numbers (a radius, interval, etc). Others are item names. And even others are formats which are text based (see the example given with /npc set message format). This is already spelled out for you, here in the docs, and in the plugin commands. Its very interactive to help you out if you enter something wrong.
-
View User Profile
-
Send Message
Posted Mar 29, 2013What are values?
-
View User Profile
-
Send Message
Posted Mar 27, 2013@BillyGalbreath
Yeah, I'm just using the straight up CB builds, but the latest build from Jenkins did it! Thank you good sir! Keep it up! Now if someone could just figure out how to use alternate skins without spout. I keep thinking something like how DisguiseCraft lets you have other players skins.
-
View User Profile
-
Send Message
Posted Mar 27, 2013@CJHacker
Replied to the ticket. I'm unable to recreate the error, and the error itself doesnt make any sense because the method its saying it cannot find is indeed a part of the CraftBukkit build 2717. I'm pretty sure you are using a modified CraftBukkit (like Spigot or CB++) which is very possible they removed or renamed the method when modifying it (which is why I only support the official CraftBukkit builds). However, it is entirely possible that is not the cause, and if so then it would be a conflicting plugin (but I cant see how a plugin can make a public CB method hidden to my plugin).
Edit: Try using the latest build from my Jenkins page to see if that solves your problem (I dont think it will because I havent changed anything fundamental in there yet).
-
View User Profile
-
Send Message
Posted Mar 27, 2013Created a ticket a few hours ago. I'm getting Unhandled exception errors on #2717 with version 1.1.0. Thanks for taking a look! Excited to see how you plan to grow this plugin!
-
View User Profile
-
Send Message
Posted Mar 25, 2013@Dragonborn2374
If you downloaded the Pl3xNPC for CB 1.5.1, then you need to install the latest dev version of CB 1.5.1 for it to work.
I have yet to have the problem of the command not working right. The only thing I can think of is make sure you have setup your permission nodes in your permissions plugin correctly. Other than that, the only thing I can think of is a conflicting plugin that is taking over the way commands are handled, because the commands work 100% fine.
-
View User Profile
-
Send Message
Posted Mar 25, 2013Just 1 question i hope you can answer is that how do i get the craftbukkit that i DO need im using a craftbukkit for 1.5.0 and the plugin for 1.5.1 (it says 1.5.1) and if i do the npc command it just says to do the command again i do and it says it again,and again. Please respond i need your help.
-
View User Profile
-
Send Message
Posted Mar 25, 2013Is it for 1.5.1 CraftBukkit? i need a plugin with statues
-
View User Profile
-
Send Message
Posted Mar 24, 2013Pl3xNPC v1.1.0 has been released!
It should show up in the files list 24+ hours from time of this post.
If you want to grab it early, it's build #20 on my Jenkins page.This version adds back the ability to set MobType NPCs, like creepers, cows, chickens, withers, villagers, etc etc.
Enjoy! ^_^
Edit: My Jenkins host provider (drtshock) has removed my project from the Jenkins server.
So, until I can find another Jenkins host for my project there will be no early links. We are forced to wait 24+ hours for the Bukkit staff to "approve" my plugin each time I update.I'm so sorry for the inconvenience this has caused anyone. :/Edit Again: I have my own Jenkins server up and running now, but the v1.1.0 build was never built on this. The 1st build includes some "dev" commits, including a fix for Zombie mob types (so it doesnt crash the clients). This fix is not included in the v1.1.0 waiting in queue for Bukkit approval. An official "approved" build with this fix will not come out until my next batch of "dev" commits are complete (might be a few days to a week). Again, sorry for any inconvenience this has caused anyone. Bukkit staff's rules and actions are beyond my control.
-
View User Profile
-
Send Message
Posted Mar 20, 2013@Dragonborn2374
Just got home from a long day of work and noticed CB updated to 1.5.1
Pl3xNPC v1.0.0 will NOT work on CB 1.5.1, however. Which is a bummer.
So, I went ahead and pushed out another release of this plugin. Since nothing has changed at all from the last release (only the CB imports needed to be updated) I bumped this up a "fix" release version number.
Pl3xNPC v1.0.1 will indeed work on CB 1.5.1, and can be obtained from my Jenkins page under build #13. Or you can wait 24+ hours for Bukkit to approve this build for it to show up listed on this page as a download. (Edit: v1.0.1 finally got approved just now, 25 hours later.)
-
View User Profile
-
Send Message
Posted Mar 20, 2013I just wanna know if this works with the new 1.5 update and it says updated 2 days ago/updated last sunday so i dont know if it is and i wanna know before i install it
-
View User Profile
-
Send Message
Posted Mar 19, 2013@Polyporekid
Make sure you have the proper permission nodes and you are running the CraftBukkit server software. This is not tested, nor supported for use on other server softwares, including Spigot and CB++. Also be sure you downloaded build #10 from the Jenkins link provided near the top of this page. The 1.5-test version does not work on the latest dev builds of CraftBukkit.