From f05a480a10310081fbb9d079485f41a85a30db12 Mon Sep 17 00:00:00 2001
From: sovdee <10354869+sovdeeth@users.noreply.github.com>
Date: Thu, 17 Apr 2025 13:25:12 -0400
Subject: [PATCH 1/4] Update StructUsing.java
---
src/main/java/ch/njol/skript/structures/StructUsing.java | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/main/java/ch/njol/skript/structures/StructUsing.java b/src/main/java/ch/njol/skript/structures/StructUsing.java
index 545c57f87e9..8abff211f26 100644
--- a/src/main/java/ch/njol/skript/structures/StructUsing.java
+++ b/src/main/java/ch/njol/skript/structures/StructUsing.java
@@ -17,7 +17,7 @@
@Name("Using Experimental Feature")
@Description({
"Place at the top of a script file to enable an optional experimental feature.",
- "For example, this might include "
+ "Experimental features may change behavior in Skript and may contain bugs. Use at your own discretion."
})
@Examples({
"using 1.21",
@@ -32,12 +32,11 @@ public class StructUsing extends Structure {
Skript.registerSimpleStructure(StructUsing.class, "using [[the] experiment] <.+>");
}
- @SuppressWarnings("NotNullFieldNotInitialized")
private Experiment experiment;
@Override
public boolean init(Literal> @NotNull [] arguments, int pattern, ParseResult result, @Nullable EntryContainer container) {
- this.enableExperiment(result.regexes.get(0).group());
+ this.enableExperiment(result.regexes.getFirst().group());
return true;
}
From 2aecfe631d57d11cb837958ca683f1681b2f5815 Mon Sep 17 00:00:00 2001
From: sovdee <10354869+sovdeeth@users.noreply.github.com>
Date: Fri, 18 Apr 2025 00:19:32 -0400
Subject: [PATCH 2/4] Update StructUsing.java
---
src/main/java/ch/njol/skript/structures/StructUsing.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/ch/njol/skript/structures/StructUsing.java b/src/main/java/ch/njol/skript/structures/StructUsing.java
index 8abff211f26..126e4be9404 100644
--- a/src/main/java/ch/njol/skript/structures/StructUsing.java
+++ b/src/main/java/ch/njol/skript/structures/StructUsing.java
@@ -36,7 +36,7 @@ public class StructUsing extends Structure {
@Override
public boolean init(Literal> @NotNull [] arguments, int pattern, ParseResult result, @Nullable EntryContainer container) {
- this.enableExperiment(result.regexes.getFirst().group());
+ this.enableExperiment(result.regexes.get(0).group());
return true;
}
From 753f8f2a155f02491bf287a38fef8df0dad7cb53 Mon Sep 17 00:00:00 2001
From: sovdee <10354869+sovdeeth@users.noreply.github.com>
Date: Thu, 1 May 2025 10:34:56 -0400
Subject: [PATCH 3/4] Update StructUsing.java
---
src/main/java/ch/njol/skript/structures/StructUsing.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/main/java/ch/njol/skript/structures/StructUsing.java b/src/main/java/ch/njol/skript/structures/StructUsing.java
index 126e4be9404..f01c29e4912 100644
--- a/src/main/java/ch/njol/skript/structures/StructUsing.java
+++ b/src/main/java/ch/njol/skript/structures/StructUsing.java
@@ -17,7 +17,11 @@
@Name("Using Experimental Feature")
@Description({
"Place at the top of a script file to enable an optional experimental feature.",
- "Experimental features may change behavior in Skript and may contain bugs. Use at your own discretion."
+ "Experimental features may change behavior in Skript and may contain bugs. Use at your own discretion.",
+ "A non-exhaustive list of experiments as of INSERT VERSION:",
+ "- using queues
: Enables experimental queue (FIFO).",
+ "- using for loops
: Enables for loops.",
+ "- using script reflection
: Enables script reflection, allowing dynamic function calls and more.",
})
@Examples({
"using 1.21",
From 139ca6ea01ab3dd832fa60c582b0b0a2cc937856 Mon Sep 17 00:00:00 2001
From: sovdee <10354869+sovdeeth@users.noreply.github.com>
Date: Thu, 1 May 2025 11:47:02 -0400
Subject: [PATCH 4/4] Update StructUsing.java
---
src/main/java/ch/njol/skript/structures/StructUsing.java | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/main/java/ch/njol/skript/structures/StructUsing.java b/src/main/java/ch/njol/skript/structures/StructUsing.java
index f01c29e4912..a7a53b45f8f 100644
--- a/src/main/java/ch/njol/skript/structures/StructUsing.java
+++ b/src/main/java/ch/njol/skript/structures/StructUsing.java
@@ -18,10 +18,7 @@
@Description({
"Place at the top of a script file to enable an optional experimental feature.",
"Experimental features may change behavior in Skript and may contain bugs. Use at your own discretion.",
- "A non-exhaustive list of experiments as of INSERT VERSION:",
- "- using queues
: Enables experimental queue (FIFO).",
- "- using for loops
: Enables for loops.",
- "- using script reflection
: Enables script reflection, allowing dynamic function calls and more.",
+ "A list of the available experimental features can be found in the changelog for your version of Skript."
})
@Examples({
"using 1.21",