Class PropExprCustomName

All Implemented Interfaces:
Debuggable, Expression<Object>, Loopable<Object>, Simplifiable<Expression<? extends Object>>, SyntaxElement, PropertyBaseSyntax<PropertyHandler.ExpressionPropertyHandler<?,?>>, RuntimeErrorProducer, SyntaxRuntimeErrorProducer

@Name("Display Name") @Description({"Represents the display name of a player, or the custom name of an item, entity, block, or inventory.","","<strong>Players:</strong> The name of the player that is displayed in messages. This name can be changed freely and can include color codes, and is shared among all plugins (e.g. chat plugins will use the display name).","","<strong>Entities:</strong> The custom name of the entity. Can be changed, which will also enable <em>custom name visibility</em> of the entity so name tag of the entity will be visible always.","","<strong>Items:</strong> The <em>custom</em> name of the item (not the Minecraft locale name). Can be changed.","","<strong>Inventories:</strong> The name/title of the inventory. Changing name of an inventory means opening the same inventory with the same contents but with a different name to its current viewers."}) @Example("on join:\n\tplayer has permission \"name.red\"\n\tset the player\'s display name to \"&lt;red&gt;[admin] &lt;gold&gt;%name of player%\"\n") @Since({"before 2.1","2.2-dev20 (inventory name)","2.4 (non-living entity support, changeable inventory name)"}) @RelatedProperty("display name") public class PropExprCustomName extends PropertyBaseExpression<PropertyHandler.ExpressionPropertyHandler<?,?>>
  • Constructor Details

    • PropExprCustomName

      public PropExprCustomName()
  • Method Details