ItemRenamer
ItemRenamer
This is another fun and cool plugin I have made! I think it would be amazing to rename items with commands and so I decided to code this plugin. This plugin also adds essentials colour support and chat formats (&k, &l, &n, &m, &r, &o)
Commands
- /anvil - Gives you a short description about this plugin and sends you the version of the current plugin.
- /anvil <name> - Renames the item in your hand.
- /giverenameditem <player> <itemid> <amount> <name> - Give a renamed item to a player!
- /setlore <lore> - Add lores to the item in your hand.
Aliases
- /rename <name> - Alias for /anvil
- /giveitem <player> <itemid> <amount> <name> - Alias for /giverenameditem
Permissions
itemrenamer.rename - Use /anvil (or aliases) and rename items!
itemrenamer.colour - Rename items/Add lores with essentials colour codes! For example if you want an item to be aqua type: /anvil &bKingFaris10
itemrenamer.format - Rename items/Add lores with essentials chat format codes (&k, &l, &n, &m, &r, &o) For example if you want an item to be bold type /anvil &lKingFaris10
itemrenamer.giveitem - Use /giverenameditem and give players renamed items!
itemrenamer.setlore - Use /setlore and add lores to items!
Thank you
If you have any suggestions post it below in the comments :)
If you like this plugin feel free to donate to: [email protected] on PayPal!
Colour codes
&0 - Black
&1 - Dark Blue
&2 - Dark Green
&3 - Dark Aqua
&4 - Dark Red
&5 - Dark Purple
&6 - Gold
&7 - Grey
&8 - Dark Grey
&9 - Blue
&a - Light Green
&b - Aqua
&c - Red (Light Red)
&d - Light Purple (Pink)
&e - Yellow
&f - White
Chat formats
&l - Bold
&k - Magic (random changing letters)
&n - Underline
&m - Strike-through
&r - Resets all of the above so it goes back to white with no format
&o - Italics
can you change all of the items names? For example if you rename a rottenflesh wet noodle all of the rottenflesh would be called wet noodle.
@Corrado117
Sorry for the late reply, I'm busy making my Hunger Games plugin. I'll try adding this but I'm not promising it'll be done soon.
@KingFaris10
1. Sorry, let me rephrase that. Can you expand the give command like the naming one to work with lores as well?
Thanks for the other help :D
@Corrado117
1. I'm sorry but I haven't yet learnt that in my Java experience :) I hope to find out how soon... 2. What do you mean chat properties? To do Bold and red you must do the &l after the colour. If you want Bold and Red for example, do: &c&l<text> not &l&c<text> 3. If you want to get rid of italics, use &r. It resets colour codes so italics is removed. If you want colour with resetted text, try &r&4
Works great, but could you please also add lore support for giving other players items from console/buycraft?
EDIT: Also, it would be great if you could apply chat properties with colors, such as bold and red. Thanks!
EDIT AGAIN: Could there be another command or just remove the italics thing? I don't really like the look :/ Maybe make /anvil italic, and /rename not?
@PapiDimmi
Added.
@Jamesscn
Can you please get Jre7 because I'm not sure if it is working on Java 6. I know definitely I coded it on Jre7.
@PapiDimmi
Sorry, It does not get italic. Although that'd actually be a sensible thing to add after all, as it is /anvil. I guess I'll remove the &o (for italics) feature and use &r for resetting it to remove italics.
I am running Java version 1.6.0_37 (mac osx), I tried the latest plugin jar but it didn't work either, I get the same error.
@Jamesscn
Also try updating to the latest plugin jar. Just wait a few hours so Bukkit can accept the new uploaded file (v1.0.2). It should be working fine.
@Jamesscn
Which Java are you running it with? Different versions affect different plugins. I think my one is based on JavaSE-1.7. I might in the future change it to Jre7 or Jre6, I'm not sure.
I get this error when I start my server, all my other plugins work fine and I am using craftbukkit version version 1.4.7 R 1.0 (latest recommended build):
23:49:51 [SEVERE] Could not load 'plugins/ItemRenamer.jar' in folder 'plugins' org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: net/bukkit/faris/itemrenamer/ItemRenamer : Unsupported major.minor version 51.0 at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184) at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305) at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.loadPlugins(CraftServer.java:239) at org.bukkit.craftbukkit.v1_4_R1.CraftServer.<init>(CraftServer.java:217) at net.minecraft.server.v1_4_R1.PlayerList.<init>(PlayerList.java:55) at net.minecraft.server.v1_4_R1.DedicatedPlayerList.<init>(SourceFile:11) at net.minecraft.server.v1_4_R1.DedicatedServer.init(DedicatedServer.java:104) at net.minecraft.server.v1_4_R1.MinecraftServer.run(MinecraftServer.java:399) at net.minecraft.server.v1_4_R1.ThreadServerApplication.run(SourceFile:849) Caused by: java.lang.UnsupportedClassVersionError: net/bukkit/faris/itemrenamer/ItemRenamer : Unsupported major.minor version 51.0 at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173) ... 9 more
@Corrado117
I've successfully implanted the suggestion you commented. Add into BuyCraft run commands: /giveitem <player> <itemid> <amount> <name>
Guys if you would like to learn coding watch my tutorials on Youtube: KingFaris10Coding
@Redstone_ It would require a lot of time and effort but I guess I'll put it second on my list.
@Corrado117
This is possible, and I'll try adding it. Thanks though!
Suggestion: If you could add it so we could make our own items in the config and setup the name color ext. and then with maybe the command /itemrenamer [name of the sword] it would give you the item. you would be able to make the name of it in the config too
Quick suggestion, allow an admin to send an item to another player with a certain name. This allows for reward plugins or buycraft etc to hook into this.
If you were to do this, you'd have the only renaming plugin with this feature, so it would definitely set yours apart.