Home›Java›Mods›NameItem
ModsJava

NameItem

Minecraft Java mod. Download on the author's site.

⬇ Download on Spigot
This is an item renaming plugin that will allow you to change the name of items and the items lore.

You can also only add color codes to an items name so that you'll still need an anvil to rename the item.

Item renaming can be allowed by using permission node:
nameitem.rename.MATERIAL or nameitem.rename.any

This plugin also includes an API so other plugins that require the names or lores of items to function will not break.

Commands:
Code (YAML):

  itemname
:
  aliases
: [in, renameitem, nameitem, setitemname ]
  description
: Rename an item. Color codes supported
  usage
: /<command> [name ]
  permission
: portables.rename.command
  example
: /itemname &6Crafting Table

  itemnamecolor
:
  aliases
: [inc, recoloritem, namecoloritem ]
  description
: Change the color of an items name. Use anvil to change actual name.
  usage
: /<command> [name ]
  permission
: portables.recolor.command
  example
: /itemnamecolor &1Diamond &4Sword

  itemlore
:
  aliases
: [il, loreitem, setitemlore, setlore ]
  description
: Change the items lore.
  usage
: /<command> [lore ]
  permission
: portables.lore.command
  example
: /itemlore &aRight click {N }to do something {N }really cool.
 
Permissions:
Code (YAML):

  nameitem.*
:
  description
: Gives all NameItem permissions.

  nameitem.rename.command
:
  description
: Access to itemname command.

  nameitem.rename.any
:
  description
: Rename any item.

  nameitem.recolor.command
:
  description
: Access to itemnamecolor command.

  nameitem.recolor.any
:
  description
: Recolor any items name.

  nameitem.lore.command
:
  description
: Access to itemlore command.

  nameitem.lore.any
:
  description
: Set lore for any item.
 
Spoiler: API Example
Code (Java):

package me.coder.plugin.listeners ;

import com.coolv1994.nameitem.events.ItemSetLoreEvent ;
import com.coolv1994.nameitem.events.ItemSetNameEvent ;

import me.coder.plugin.Plugin ;

import org.bukkit.event.EventHandler ;
import org.bukkit.event.Listener ;

public class NameItemListener implements Listener {
  private final Plugin plugin ;

  public NameItemListener (Plugin plugin ) {
  this. plugin = plugin ;
  }

  @EventHandler
  public void onSetName (ItemSetNameEvent event ) {
  if (plugin. usesItem (event. getItem ( ) ) ) {
  event. getPlayer ( ). sendMessage ( "[MyPlugin] This item can not be renamed." ) ;
  event. setCancelled ( true ) ;
  }
  }

  @EventHandler
  public void onSetLore (ItemSetLoreEvent event ) {
  if (plugin. usesItem (event. getItem ( ) ) ) {
  event. getPlayer ( ). sendMessage ( "[MyPlugin] This item can not have its lore changed." ) ;
  event. setCancelled ( true ) ;
  }
  }
}
 

Source on GitHub


Please do NOT post errors in the Reviews section, post in the Discussion Thread instead.
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

NameItem is a free Minecraft Java mod. Downloaded 529 times (via Spigot). Download it and open it directly in the game.

Explore more