Skip to content

Commit

Permalink
Make examples use proper syntax (#7521)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phill310 authored Feb 1, 2025
1 parent b4db4b1 commit ed09bef
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@Description("Checks if the lure enchantment is applied to the current fishing event.")
@Examples({
"on fishing line cast:",
"\tif lure enchantment is applied:",
"\tif lure enchantment bonus is applied:",
"\t\tcancel event"
})
@Events("Fishing")
Expand Down Expand Up @@ -49,7 +49,7 @@ public boolean check(Event event) {

@Override
public String toString(@Nullable Event event, boolean debug) {
return "lure enchantment " + (isNegated() ? "is" : "isn't") + " applied";
return "lure enchantment bonus " + (isNegated() ? "is" : "isn't") + " applied";
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
})
@Examples({
"on fish approach:",
"\tif fishing approach angle is bigger than 300.5 degrees or fishing approach angle is smaller than 59.5 degrees:",
"\tif any:",
"\t\tmaximum fishing approach angle is bigger than 300.5 degrees",
"\t\tmin fishing approach angle is smaller than 59.5 degrees",
"\tthen:",
"\t\tcancel event"
})
@Events("Fishing")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
})
@Examples({
"on fish approach:",
"\tset fishing bite time to 5 seconds",
"\tset fishing bite time to 5 seconds",
})
@RequiredPlugins("Paper 1.20.6")
@Events("Fishing")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
})
@Examples({
"on fishing line cast:",
"\tset min waiting time to 10 seconds",
"\tset max waiting time to 20 seconds",
"\tset min fish waiting time to 10 seconds",
"\tset max fishing waiting time to 20 seconds",
})
@Events("Fishing")
@Since("2.10")
Expand Down

0 comments on commit ed09bef

Please sign in to comment.