-
-
Notifications
You must be signed in to change notification settings - Fork 379
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7307 from SkriptLang/dev/feature
Merge feature branch into master (before release).
- Loading branch information
Showing
1,620 changed files
with
45,671 additions
and
32,766 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: When labels are modified, run actions. | ||
|
||
on: | ||
issues: | ||
types: [labeled] | ||
|
||
jobs: | ||
remove-good-first-issue-label: | ||
if: ${{ github.event.label.name == 'completed' || github.event.label.name == 'PR available'}} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
steps: | ||
- uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
github.rest.issues.removeLabel({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
name: ["good first issue"] | ||
}) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Java 17 CI (MC 1.17-1.20.4) | ||
name: Java 17 CI (MC 1.19.4-1.20.4) | ||
|
||
on: | ||
push: | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: JUnit (MC 1.17-1.20.4) | ||
name: JUnit (MC 1.19.4-1.20.4) | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
[submodule "skript-aliases"] | ||
path = skript-aliases | ||
url = https://github.com/SkriptLang/skript-aliases | ||
branch = minimized-aliases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule skript-aliases
updated
20 files
+0 −356 | +global-variations.sk | |
+6 −4 | README.md | |
+0 −389 | armor-trims.sk | |
+0 −52 | brewing.sk | |
+0 −686 | building.sk | |
+1 −142 | combat.sk | |
+2 −826 | decoration.sk | |
+0 −19 | doors.sk | |
+5 −119 | foodstuffs.sk | |
+0 −196 | misc-eggs.sk | |
+0 −378 | misc.sk | |
+0 −277 | other.sk | |
+0 −297 | redstone.sk | |
+0 −82 | slabs.sk | |
+0 −70 | stairs.sk | |
+0 −65 | tools.sk | |
+7 −134 | transportation.sk | |
+0 −6 | z-block-placement.sk | |
+0 −2 | z-categories.sk | |
+0 −8 | z-click-events.sk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
package ch.njol.skript; | ||
|
||
import org.jetbrains.annotations.Unmodifiable; | ||
import org.skriptlang.skript.Skript; | ||
import org.skriptlang.skript.addon.SkriptAddon; | ||
import org.skriptlang.skript.localization.Localizer; | ||
import org.skriptlang.skript.registration.SyntaxRegistry; | ||
import org.skriptlang.skript.util.Registry; | ||
|
||
import java.util.Collection; | ||
import java.util.function.Supplier; | ||
|
||
/** | ||
* Bridge for interacting with the modern API classes from {@link org.skriptlang.skript}. | ||
*/ | ||
final class ModernSkriptBridge { | ||
|
||
private ModernSkriptBridge() { } | ||
|
||
/** | ||
* Similar to {@link Skript#unmodifiableView()}, but permits addon registration. | ||
*/ | ||
public static final class SpecialUnmodifiableSkript implements Skript { | ||
|
||
private final Skript skript; | ||
private final Skript unmodifiableSkript; | ||
|
||
public SpecialUnmodifiableSkript(Skript skript) { | ||
this.skript = skript; | ||
this.unmodifiableSkript = skript.unmodifiableView(); | ||
} | ||
|
||
@Override | ||
public SkriptAddon registerAddon(Class<?> source, String name) { | ||
return skript.registerAddon(source, name); | ||
} | ||
|
||
@Override | ||
public @Unmodifiable Collection<SkriptAddon> addons() { | ||
return unmodifiableSkript.addons(); | ||
} | ||
|
||
@Override | ||
public Class<?> source() { | ||
return unmodifiableSkript.source(); | ||
} | ||
|
||
@Override | ||
public String name() { | ||
return unmodifiableSkript.name(); | ||
} | ||
|
||
@Override | ||
public <R extends Registry<?>> void storeRegistry(Class<R> registryClass, R registry) { | ||
unmodifiableSkript.storeRegistry(registryClass, registry); | ||
} | ||
|
||
@Override | ||
public void removeRegistry(Class<? extends Registry<?>> registryClass) { | ||
unmodifiableSkript.removeRegistry(registryClass); | ||
} | ||
|
||
@Override | ||
public boolean hasRegistry(Class<? extends Registry<?>> registryClass) { | ||
return unmodifiableSkript.hasRegistry(registryClass); | ||
} | ||
|
||
@Override | ||
public <R extends Registry<?>> R registry(Class<R> registryClass) { | ||
return unmodifiableSkript.registry(registryClass); | ||
} | ||
|
||
@Override | ||
public <R extends Registry<?>> R registry(Class<R> registryClass, Supplier<R> putIfAbsent) { | ||
return unmodifiableSkript.registry(registryClass, putIfAbsent); | ||
} | ||
|
||
@Override | ||
public SyntaxRegistry syntaxRegistry() { | ||
return unmodifiableSkript.syntaxRegistry(); | ||
} | ||
|
||
@Override | ||
public Localizer localizer() { | ||
return unmodifiableSkript.localizer(); | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.