Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make examples use proper syntax #7521

Open
wants to merge 2 commits into
base: dev/patch
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading