From d8dff3cd1eaa6ec01eb202c89d5eca8f7cdaa5b4 Mon Sep 17 00:00:00 2001 From: Phill310 Date: Fri, 24 Jan 2025 16:25:53 -0800 Subject: [PATCH] Make examples user proper syntax --- .../skript/bukkit/fishing/elements/CondFishingLure.java | 4 ++-- .../bukkit/fishing/elements/ExprFishingApproachAngle.java | 5 ++++- .../skript/bukkit/fishing/elements/ExprFishingBiteTime.java | 2 +- .../skript/bukkit/fishing/elements/ExprFishingWaitTime.java | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/skriptlang/skript/bukkit/fishing/elements/CondFishingLure.java b/src/main/java/org/skriptlang/skript/bukkit/fishing/elements/CondFishingLure.java index 6a0ebf0b418..215ad63bf92 100644 --- a/src/main/java/org/skriptlang/skript/bukkit/fishing/elements/CondFishingLure.java +++ b/src/main/java/org/skriptlang/skript/bukkit/fishing/elements/CondFishingLure.java @@ -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") @@ -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"; } } diff --git a/src/main/java/org/skriptlang/skript/bukkit/fishing/elements/ExprFishingApproachAngle.java b/src/main/java/org/skriptlang/skript/bukkit/fishing/elements/ExprFishingApproachAngle.java index 1d7b920b596..3ac1754af25 100644 --- a/src/main/java/org/skriptlang/skript/bukkit/fishing/elements/ExprFishingApproachAngle.java +++ b/src/main/java/org/skriptlang/skript/bukkit/fishing/elements/ExprFishingApproachAngle.java @@ -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") diff --git a/src/main/java/org/skriptlang/skript/bukkit/fishing/elements/ExprFishingBiteTime.java b/src/main/java/org/skriptlang/skript/bukkit/fishing/elements/ExprFishingBiteTime.java index 77738e9d743..78f7b3f5129 100644 --- a/src/main/java/org/skriptlang/skript/bukkit/fishing/elements/ExprFishingBiteTime.java +++ b/src/main/java/org/skriptlang/skript/bukkit/fishing/elements/ExprFishingBiteTime.java @@ -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") diff --git a/src/main/java/org/skriptlang/skript/bukkit/fishing/elements/ExprFishingWaitTime.java b/src/main/java/org/skriptlang/skript/bukkit/fishing/elements/ExprFishingWaitTime.java index b71552571f5..0358a2ee554 100644 --- a/src/main/java/org/skriptlang/skript/bukkit/fishing/elements/ExprFishingWaitTime.java +++ b/src/main/java/org/skriptlang/skript/bukkit/fishing/elements/ExprFishingWaitTime.java @@ -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")