Auto-Rename
Description
What it is
This plugin will rename configurable items to a configurable name when they are created, enchanted, or combined.
commands
- AR-Reload: Reloads the config
Permissions
Auto-Rename.ReloadConfig: permission to reload the config
- If anyone wants any for whatever reason just ask.
How it works
When someone creates, enchants, or combines items the name is reset if it is in the config.
when crafting or combining the name only shows up correctly after it is taken out of the result slot.
Config
The items use material names from the bukkit api so that means that it is all in caps without spaces, for instance a diamond sword is DIAMOND_SWORD
Under the item there can be a section called default. This is what it defaults to on creation and if the enchantments don't match any other category. This section is optional. If it isn't there then the normal name will be used.
For items with a different data value than 0 you just add a separate section under the item number called data then have the data value there. This would be used for something like wool or dyes or wood.
For items to have enchantments and have a different name you put a number with apostrophes around it (eg. '1') starting with 1 and going to how ever many different enchantment combos you want. Under the number you have to have a section called enchantments. This uses the name of enchantments in the bukkit api then a colon and the level of the enchantment. For instance fo a power 1 enchantment it would be ARROW_DAMAGE:1, for the name of the item with those enchantments you have to put another category under the number called name then the name goes after it.
For potions you have to put the potion type from the bukkit api then under it you put the level of the potion. For instance, for a speed 1 potion you would have to put SPEED: then under it would go '1': "name you want".
All of the names that I keep referring to in the bukkit api are under static public attributes.
Also if you want the name to be more than one word you have to put either quotes or apostrophes around it and color codes work for the names. You have to put &# to identify it as a certain color that you want.
I have examples of all of this in the default config.
To Do
- Anyone have any suggestions?
Known Bugs
- When you take something out of the result slot of the furnace inventory the smelting slot turns into whatever you took out if the name was changed until the inventory updates.
- If anyone finds any please create a ticket for it
Still doens't work to represent a value I just do :2 after the id correct? for example 351:2
@Jexter_
for the water bottle try using an id of 373 with a data value of 0, and for cactus green it would be either INK_SACK (that's the enum constant that represent all dyes) or an id of 351, both would use a data value of 2
One problem waterbottle [potion] and cactus green [Cactus_Dye] don't work
You got my like (y) nice work man.
@Airazz_Nigeen
Yes, unless I'm going blind I see nothing in there about this plugin: http://dev.bukkit.org/paste/7995/
@Jogy34
Oh really?!?
@alexk252
As the error you posted doesn't have anything to do with this plugin, it was from pex, and it works completely fine for me, no.
Is this going to be fixed anytime soon? This plugin is amazing, and it's sad to see it broken.
@Jogy34
It does work, but it generates errors sometimes, which crash the server. I think your plugin is conflicting the PEX's Modifyworld. IF you don't know what PEX is, it's one of the top permission system plugins, and it uses another plugin "ModifyWorld", to restrict placing blocks or using items.
ERROR: http://dev.bukkit.org/paste/7995/
Im getting this error, which in turn usually crashes the entire server. Please make your plugin compatible with PEX, as I know alot of people use it.
Thanks, and brilliant work by the way!
Alex. K
@alexk252
This works with 1.5.2
Please update to 1.5.2!
16.06 20:49:15 [Server] INFO Players: Arcade Gannon, Blake Anderson, Eddard Stark, Elder Vindictus, Frumentarii Casius, General Florence, John Cloud, Johnny Cabella, Krieg, Nico Bullson, Niko Pikras, Praetorian Acuzio, Stan Graham, TheKingRileyIV, Vass Monteregro, Xavior Ruffner 16.06 20:49:13 [Multicraft] Nico_Bullson ran command Message of the Day 16.06 20:49:13 [Server] INFO Nico Bullson has entered the Realm. 16.06 20:49:13 [Connect] User Nico_Bullson, IP 206.75.170.252 16.06 20:49:13 [Multicraft] Skipped 17 lines due to rate limit (45/s) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:581) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:30) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35) 16.06 20:49:11 [Server] INFO at org.getspout.spout.SpoutPlayerConnection.d(SpoutPlayerConnection.java:195) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:109) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.NetworkManager.b(NetworkManager.java:292) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.Packet102WindowClick.handle(SourceFile:31) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:1172) 16.06 20:49:11 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) 16.06 20:49:11 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) 16.06 20:49:11 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 16.06 20:49:11 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) 16.06 20:49:11 [Server] INFO org.bukkit.event.EventException 16.06 20:49:11 [Server] SEVERE Could not pass event InventoryClickEvent to Auto-Rename v0.3 16.06 20:49:11 [Server] INFO ... 15 more 16.06 20:49:11 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) 16.06 20:49:11 [Server] INFO at java.lang.reflect.Method.invoke(Unknown Source) 16.06 20:49:11 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) 16.06 20:49:11 [Server] INFO at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source) 16.06 20:49:11 [Server] INFO at com.xern.jogy34.autorename.general.EventListeners.onClick(EventListeners.java:33) 16.06 20:49:11 [Server] INFO at com.xern.jogy34.autorename.general.EventListeners.getNewName(EventListeners.java:94) 16.06 20:49:11 [Server] INFO at org.bukkit.potion.Potion.fromItemStack(Potion.java:389) 16.06 20:49:11 [Server] INFO at org.bukkit.potion.Potion.fromDamage(Potion.java:380) 16.06 20:49:11 [Server] INFO at org.bukkit.potion.Potion.extend(Potion.java:130) 16.06 20:49:11 [Server] INFO at org.bukkit.potion.Potion.setHasExtendedDuration(Potion.java:246) 16.06 20:49:11 [Server] INFO at org.apache.commons.lang.Validate.isTrue(Validate.java:157) 16.06 20:49:11 [Server] INFO Caused by: java.lang.IllegalArgumentException: Instant potions cannot be extended 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.ThreadServerApplication.run(SourceFile:573) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.MinecraftServer.run(MinecraftServer.java:410) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.MinecraftServer.q(MinecraftServer.java:477) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.DedicatedServer.r(DedicatedServer.java:226) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.MinecraftServer.r(MinecraftServer.java:581) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.DedicatedServerConnection.b(SourceFile:30) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.ServerConnection.b(SourceFile:35) 16.06 20:49:11 [Server] INFO at org.getspout.spout.SpoutPlayerConnection.d(SpoutPlayerConnection.java:195) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.PlayerConnection.d(PlayerConnection.java:109) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.NetworkManager.b(NetworkManager.java:292) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.Packet102WindowClick.handle(SourceFile:31) 16.06 20:49:11 [Server] INFO at net.minecraft.server.v1_5_R3.PlayerConnection.a(PlayerConnection.java:1172) 16.06 20:49:11 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) 16.06 20:49:11 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) 16.06 20:49:11 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) 16.06 20:49:11 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) 16.06 20:49:11 [Server] INFO org.bukkit.event.EventException 16.06 20:49:11 [Server] SEVERE Could not pass event InventoryClickEvent to Auto-Rename v0.3
@alexk252
It is a spout plugin error, caused by the newest version. Nothing you can change at all, but for me it helped to downlaod and install it again (plugin, not client) I think it got in trouble with other plugins, i guess it was caused by more materials. If you use it, reinstall both :)
@alexk252
I'm not quite sure why you think that would be caused by this plugin. It doesn't say anything about this plugin in the error. It only talks about some spout thing and then ModifyWorld
Hello!
This is the owner of the server he asked this to be created for.
I got an error. Your plugin is conflicting with PEX's ModifyWorld:
http://dev.bukkit.org/paste/7879/
If this could be fixed in an update, that would be awesome.
Thankyou, Alex. K
@Knyghtfalcon
It should still work with 1.5.2. If you find any errors then please alert me to them and I'll fix them as soon as I get a chance.
Jogy its knyght, remember me? From my server i asked you to make this for?
If you could update this to 1.5.2 i would really appreciate it, i really have need for this plugin again.
Is there any way to add custom lore? For example, on my server I have a sword with sharpness 2, name Iron Longsword, but below the name an enchantment it has the damage listed (Which I edited in with NBT edit). Would it be possible to have every iron sword with sharpness 2 have that lore/nbt tag?
EDIT: Looked further back in the comments and you already answered this. Sorry.
@tptomuks
If you are talking about exp levels then that would be useless as those can constantly fluctuate. Even if you aren't that would probably mean that you are talking about levels from a different plugin and in either case I won't be implementing it because levels from exp is, again, useless and I don't want to make this have any sort of dependencies on other plugins.
Need add lvl request for item with diferent name and enchants:
WOOD_SWORD: default: '&fGladius' '1': enchants: - DAMAGE_ALL:2 name: '&fLong Sword' '2': enchants: - DAMAGE_ALL:5 name: '&fFalchion' lvl: 5 - lvl required to use that item :)