VillagerNames
VillagerNames is a plugin that allows you to name your Villagers by default based on a wordlist with names in the config.yml. It comes with a predefined list of about 170 medieval names.
Features
- Lightweight
- Simple
- Easy to configure
- Feature: Different names per Villager profession
- Feature: Randomize the names of all loaded Villagers
- Feature: Rename easily the Villager that you are looking at with one command
- Feature: Alias command /vn
- New feature: non-bukkit compatibility / support for 3rd party professions (merged pull request#1 by chiting)
Permissions
Permission | Purpose | Default |
---|---|---|
villagernames.randomize | Randomize the names of all loaded Villagers/villagercommands randomize | ops |
villagernames.rename | Rename the villager that infront of your crosshair/villagercommands rename <name> | ops |
Screenshots
config.yml
log: true farmer: - 'Adelaide' - ... librarian: - 'Brorda' - ... priest: - 'Edmund' - ... blacksmith: - 'Ine' - ... butcher: - 'Peter' - ... other: - 'Xolf' - ...
Depencies
none
Source
You can find the source of this project in my repository on GitHub:
To-do
- feature/command to remove the name of loaded Villagers (feature request of xergic)
- Debug mode
Alias for "/villagernames" commandAdded in v0.4MCStats.org metrics supportAdded in v0.3different names per Villager type (feature request of jhs232)Added in v0.2command to randomize the names of EVERY single Villager that is currently loaded (feature request of Hendies)Added in v0.2
Version
0.5.4
Quote:Caution - config.yml-changes:
Please renew your config.yml or add "log: true" if you used v0.2 before
MCstats
This plugin utilises Hidendra's plugin metrics system, which means that the following information is collected and sent to mcstats.org:
- A unique identifier
- The server's version of Java
- Whether the server is in offline or online mode
- The plugin's version
- The server's version
- The OS version/name and architecture
- The core count for the CPU
- The number of players online
- The Metrics version
Opting out of this service can be done by editing plugins/Plugin Metrics/config.yml and changing opt-out to true.
Just filed in v0.5.4 which is compiled with the latest Bukkit 1.7.9 API.
@GaJitt
The 1.6.2 build still should do find on 1.7.X :)
When is this going to be approved for 1.7.2? I could use this on my server.
@E1i0te
@ghostring98
I just uploaded a new version which is compatible with the latest 1.7.2 Bukkit builds. Until its officially approved, you can download it here.
When is the version 1.7.2 for this plugin coming out?
I'm running 1.7.2 and whenever you reload the server, the names disappear! HALP
@Noast07
But this wouldn't rename all Villagers automaticlly as soon as they spawn. I don't see your point.
@MCFUser5585029
The "other"-section is for 3rd party non-vanilla Villager types which could be added through Forge/Tekkit/Spout mods. This section doesn't affect the normal Bukkit version.
@Noast07
This randomizes all villager names, every single one in the world, I believe. Much easier than renaming villager eggs.
Edit: Where do the "other" section names come into play?
@Noast07 If this is useless I'd love to here why your Invisible Plugins plugin isn't. You can just not give a player the /pl permission, and BAM no need for your plugin.
This plugin is useless, you can just get a villager egg and rename it in the anvil and spawn it BAM theres your named villager!
@xergic
I will implement a reset command in the next version for you. :)
Unfortunately this will effect only the "loaded" villagers which are currently spawned on loaded chunks. So you might need to apply that command multiple times to reset all villagers in your world.
@frdmn
I understand. So is it possible to turn them off globally? It could work with command (like /vn show/hide) which would be only available for ops.
I run a small server and I wanted this as experiment but it seems others don't like it either. I'm just trying to figure out how to get rid of the names (by deleting the plugin or just turning them off for now).
@xergic
As far as i know i can't toggle the nametags per player. They are set globally for everyone. A feature like that would end in a hellacious flashing of nametags because of the enabling/disabling checks for each player. :/
Is there a way to turn names off? Deleting the pluging doesn't work.
I like the idea but those nametags are driving me crazy :) It would be great not to snow them until player looks at the villager (as someone suggested before).
@Clarinoman
Will do (hopefully today or tomorrow). :)
Please add CB 1.5.2 support !!!
@chiting
Thank you for your pull request, chiting. I just filed the updated version (which includes your modifications) :)
@frdmn
I have tried a little debug on this cause:
1. the error only appear on new types of villager
2. original type no problem
3. old version 0.1 no problem
4. traced that ((Villager) event.getEntity()).getProfession() will return null
Because of my English is not well. If there is something impolite or offensive. I'm sorry. :)
@chiting
Well the plugin is not meant to be compatible with "non-bukkit" server wrappers like MCPC which could provide additional classes/types that i dont know about. :/
I can try to make you a custom version if you could provide some docs of those villager types.
@chiting Following is the error
Could not pass event CreatureSpawnEvent to VillagerNames v0.3 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:363) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:479) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:464) at org.bukkit.craftbukkit.v1_5_R2.event.CraftEventFactory.callCreatureSpawnEvent(CraftEventF actory.java:215) at net.minecraft.world.World.addEntity(World.java:1687) at net.minecraft.item.ItemMonsterPlacer.func_77840_a(ItemMonsterPlacer.java:105) at net.minecraft.item.ItemMonsterPlacer.func_77648_a(ItemMonsterPlacer.java:61) at net.minecraft.item.ItemStack.func_77943_a(ItemStack.java:126) at net.minecraft.item.ItemInWorldManager.func_73078_a(ItemInWorldManager.java:582) at net.minecraft.network.NetServerHandler.func_72472_a(NetServerHandler.java:869) at net.minecraft.network.packet.Packet15Place.func_73279_a(SourceFile:58) at org.spigotmc.netty.NettyNetworkManager.func_74428_b(NettyNetworkManager.java:189) at net.minecraft.network.NetServerHandler.func_72570_d(NetServerHandler.java:213) at net.minecraft.network.NetworkListenThread.func_71747_b(NetworkListenThread.java:53) at org.spigotmc.netty.NettyServerConnection.func_71747_b(NettyServerConnection.java:68) at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:918) at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:323) at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:786) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:670) at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:573) Caused by: java.lang.NullPointerException at mn.frd.VillagerNames.VillagerNames.onCreatureSpawn(VillagerNames.java:191) at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:361) ... 20 more