Skip to content

Commit

Permalink
fix tag casing
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jun 27, 2018
1 parent 9bfa36d commit ee01c4f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,21 +162,21 @@ private void dropBook(Location location, ItemStack book) {
*/
public void paragraph(ReplaceableTagEvent e) {
// <--[tag]
// @attribute <P>
// @attribute <p>
// @returns Element
// @description
// Returns a paragraph, for use in books.
// -->
if (e.matches("P")) {
if (e.matches("p")) {
e.setReplaced("\n \u00A7r \n");
// <--[tag]
// @attribute <N>
// @attribute <n>
// @returns Element
// @description
// Returns a newline symbol, for use in books.
// -->
}
else if (e.matches("N")) {
else if (e.matches("n")) {
e.setReplaced("\n");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void run(ReplaceableTagEvent event) {
}

public void anchorTags(ReplaceableTagEvent event) {
if (!event.matches("ANCHOR")) {
if (!event.matches("anchor")) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private enum ReplaceType {LENGTH, SIZE, ASSTRING, ABS, ASINT, ASDOUBLE, ASLIST,
*/

public void flagTag(ReplaceableTagEvent event) {
if (!event.matches("FLAG")) {
if (!event.matches("flag")) {
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public void run(ReplaceableTagEvent event) {

public void notableTags(ReplaceableTagEvent event) {

if (!event.matches("NOTABLE")) {
if (!event.matches("notable")) {
return;
}

Expand Down

0 comments on commit ee01c4f

Please sign in to comment.