Skip to content

Commit

Permalink
Change Player and NPC tag aliases. Removed 'n' and 'p'. Added 'pl'.
Browse files Browse the repository at this point in the history
  • Loading branch information
aufdemrand committed Jul 1, 2013
1 parent 0ad5ed1 commit 455756e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Expand Up @@ -41,7 +41,8 @@ public String getHelp() {
"- run gate_closer delay:10s \n" +
"Use run with a delay and 'loop' argument to create a script on a " +
"timer. You can even specify the amount of loops.\n" +
"- run server_announcement loop";
"- run server_announcement loop 1h";
"Attach some definitions to "
}

@Override
Expand Down
Expand Up @@ -31,7 +31,7 @@ public NPCTags(Denizen denizen) {

@EventHandler
public void npcTags(ReplaceableTagEvent event) {
if (!event.matches("npc, n")) return;
if (!event.matches("npc")) return;

// Build a new attribute out of the raw_tag supplied in the script to be fulfilled
Attribute attribute = new Attribute(event.raw_tag, event.getScriptEntry());
Expand Down
Expand Up @@ -62,7 +62,7 @@ public void addMessage(AsyncPlayerChatEvent event) {
@EventHandler
public void playerTags(ReplaceableTagEvent event) {

if (!event.matches("player, p")) return;
if (!event.matches("player, pl")) return;

// Build a new attribute out of the raw_tag supplied in the script to be fulfilled
Attribute attribute = new Attribute(event.raw_tag, event.getScriptEntry());
Expand Down

0 comments on commit 455756e

Please sign in to comment.