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

ExprSecRunnable #7389

Open
wants to merge 7 commits into
base: dev/feature
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Docs Update
  • Loading branch information
TheAbsolutionism committed Jan 4, 2025
commit 28d4f4a6a3155af980c1c38bc3782a22a8ad2ada
18 changes: 12 additions & 6 deletions src/main/java/ch/njol/skript/sections/SecRunnable.java
Original file line number Diff line number Diff line change
@@ -25,11 +25,11 @@

@Name("Runnable")
@Description({
"This section will wait the amount of time from the provided timespan to run the code within the section.",
"This will not halt the code after this section.",
"Any local variables defined before hand will be usable within the section, but will not replace local variables within the code outside this section.",
"Any local variables defined within this section will not be preset outside of this section.",
"Any local variables defined outside and after this section will not be accessible in this section."
"This section will run the code within after waiting the provided timespam.",
"This will not halt the script from the code after this section from being ran.",
"Any local variables defined before hand will be usable within the section, but any modifications done within the section do not precedent outside of the section.",
"Any local variables defined within this section will not be usable outside of the section.",
"Any local variables defined after this section will not be accessible in the section."
})
@Examples({
"set {_a} to 1",
@@ -42,7 +42,13 @@
"if {_a} = 2:",
"\t# This will fail because the code within the section does not change the local variables outside of it.",
"if {_b} is set:",
"\t# This will fail because local variables defined within the section is not accessible outside of it."
"\t# This will fail because local variables defined within the section is not accessible outside of it.",
"",
"after a second run:",
"\tbroadcast \"Bye\"",
"\t# This will be broadcasted second",
"broadcast \"Hi\"",
"# This will be broadcasted first"
})
@Since("INSERT VERSION")
public class SecRunnable extends Section implements SyntaxRuntimeErrorProducer {
Loading