Skip to content

Commit

Permalink
Add display_name mechanism
Browse files Browse the repository at this point in the history
Sets the name displayed for the player when chatting. Can be overridden
by plugins like Essentials if they are not configured correctly
  • Loading branch information
blankiito committed Dec 14, 2013
1 parent 627734a commit 6fe2684
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/main/java/net/aufdemrand/denizen/objects/dPlayer.java
Expand Up @@ -1345,7 +1345,22 @@ public void adjust(Mechanism mechanism, Element value) {
getPlayerEntity().setPlayerListName(value.asString());
return;
}


// <--[mechanism]
// @object dPlayer
// @name display_name
// @input Element
// @description
// Sets the name displayed for the player when chatting. Can be overridden
// by plugins like Essentials if they are not configured correctly
// @tags
// <player.name.display>
// -->
if (mechanism.matches("display_name")) {
getPlayerEntity().setDisplayName(value.asString());
return;
}

// <--[mechanism]
// @object dPlayer
// @name time
Expand Down

0 comments on commit 6fe2684

Please sign in to comment.