Item Name/Lore Modification Commands
Commands:
/lore add [text]: Will add a line of lore text to the item.
/lore get: Will output all the stored lore text to the Player, with line numbers.
/lore remove [number]: Will remove the specified line from the lore text.
/lore color [number] [color]: Sets the specified lore color (found below).
/lore style [number] [style]: Sets the specified lore style (found below) Must be set before the color.
/name set [text]: Sets the item name to the text provided.
/name reset: Removes the custom name tag, setting the name back to default.
/name color [color]: Sets the name color to the specified color (found below)
/name style [style]: Sets the name style to the specified style (found below) Must be set before the color.
Colors:
black
dark-blue
dark-green
dark-aqua
dark-red
purple
orange
grey
dark-grey
indigo
green
aqua
red
pink
yellow
white
Styles:
bold
strike
underline
italic
random
Permissions:
dmc.*: Player’s with this permission can modify both lore and name.
dmc.lore: Player’s with this permission can change item’s lore text.
dmc.name: Player’s with this permission can change item’s name.
These permissions by default are assigned to OPs.
@dmillerw
so this plugin doesn't work right now? or what?
Yeah, I'm going to be re-writing this soon, just because the original code is rather sloppy. Look out for that.
@KingAmles I am also getting this error, I hope the author fixes it soon.
I have it installed, and naming works well. However, I can set lore, but get an internal server error when trying to set the colour of the lore. I have even tried using the /lore get command beforehand.
not sure why?
Any chance you could add economy and exp support? Atm I can't use this otherwise players could get what my server calls "Special Items" with 0 cost...
@Reddy360
I might do something like that, and just leave the color/style commands. Because while that's as good idea, it does rely on the player knowing those color codes.
Will add. Completely forgot that. :P
Instead of using '/Name color blue' or '/Lore color blue' you could use the method 'ChatColor.translateAlternateColorCodes(altColorChar, textToTranslate)' so when you set the name you could do this
and it will use colour codes so if you do '/name set &4Reddy360's &bDiamond Sword' will change the name to '(In red)Reddy360's (In blue)Diamond Sword'.
Also this would be nice
If you need any help coding this plugin you can always PM me!
@Captain-Dingo
My bad. I forgot a null check. Fix on its way.
wow... this is
AMAZING!
I have been looking for a plugin like this for AGES and now to finally find one... THANK-YOU!
@dmillerw
Sure. Just use /lore get on an item that hasn't been assigned with any lore.
Don't know if it's just because I'm opped, but every time I do that I'm met with an internal error message in chat.
I think there just weren't any handlers programmed into some of these commands to check and see what to do if an item hasn't had any lore added to it (hence the array out of index error in the server, I imagine).
@Captain-Dingo
There shouldn't be any user-end errors, at least internal errors. Can you provide an example?
A few suggestions. One, it's error spam galore in the server if you use any of the commands and there isn't already a name/line of lore attached to the item and "internal error" spam in the chat. Very unclean for the end-user.
Second, it might be good to enforce a maximum character limit per line of lore. If you use the entire chat space to add a line, it's unreadable without moving the item to the left side of your inventory. I'd either implement automatic line breaks (perhaps at a configurable character amount) or truncate lines that are longer than X.
Obviously this is currently up to the person assigning the lore to not make sloppy lore lines that flow off the screen, but I have a feeling not everyone will go to the trouble.
Aside from that, cool mod. I plan on using it with a job plugin and letting only blacksmiths assign names and lore to items.
Color support's been added, just waiting on approval.
Very excited to see you looking into colouring, I will definitely be using this when it's added!
Seems to be a popular request, so I'll do it tonight. Look for it in a couple hours.
Bookmarked, for when you release styles
@ffaen123
Not yet, but it will.
@dmillerw
When you first upload your plugin, it will take about 1 day for mods to approve the plugin, basically it stops malicious code being in rogue plugins :)
Also, does this support colour codes?
It is released. I just can't figure out how to use Bukkit Dev. Should be good now. :P
Well this sounds interesting hope you can release it soon!