@@ -1438,7 +1438,7 @@ private static void stopAcceptingRegistrations() {
14381438 * @deprecated Use {@link org.skriptlang.skript.Skript#registerAddon(Class, String)}.
14391439 * Obtain a Skript instance with {@link #instance()}.
14401440 */
1441- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1441+ @ Deprecated (since = "2.14 " , forRemoval = true )
14421442 public static SkriptAddon registerAddon (JavaPlugin plugin ) {
14431443 checkAcceptRegistrations ();
14441444 SkriptAddon addon = new SkriptAddon (plugin );
@@ -1451,7 +1451,7 @@ public static SkriptAddon registerAddon(JavaPlugin plugin) {
14511451 * Consider using {@link #getAddon(String)} with the name of the plugin ({@link JavaPlugin#getName()}).
14521452 * Obtain a Skript instance with {@link #instance()}.
14531453 */
1454- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1454+ @ Deprecated (since = "2.14 " , forRemoval = true )
14551455 public static @ Nullable SkriptAddon getAddon (JavaPlugin plugin ) {
14561456 if (plugin == Skript .getInstance ()) {
14571457 return Skript .getAddonInstance ();
@@ -1468,7 +1468,7 @@ public static SkriptAddon registerAddon(JavaPlugin plugin) {
14681468 * @deprecated Use {@link org.skriptlang.skript.Skript#addon(String)}.
14691469 * Obtain a Skript instance with {@link #instance()}.
14701470 */
1471- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1471+ @ Deprecated (since = "2.14 " , forRemoval = true )
14721472 public static @ Nullable SkriptAddon getAddon (String name ) {
14731473 if (name .equals (Skript .getInstance ().getName ())) {
14741474 return Skript .getAddonInstance ();
@@ -1485,7 +1485,7 @@ public static SkriptAddon registerAddon(JavaPlugin plugin) {
14851485 * @deprecated Use {@link org.skriptlang.skript.Skript#addons()}.
14861486 * Obtain a Skript instance with {@link #instance()}.
14871487 */
1488- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1488+ @ Deprecated (since = "2.14 " , forRemoval = true )
14891489 public static @ Unmodifiable Collection <SkriptAddon > getAddons () {
14901490 Set <SkriptAddon > addons = new HashSet <>(Skript .addons );
14911491 addons .addAll (instance ().addons ().stream ()
@@ -1503,7 +1503,7 @@ public static SkriptAddon registerAddon(JavaPlugin plugin) {
15031503 * @return A {@link SkriptAddon} representing Skript.
15041504 * @deprecated Use {@link #instance()} instead.
15051505 */
1506- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1506+ @ Deprecated (since = "2.14 " , forRemoval = true )
15071507 public static SkriptAddon getAddonInstance () {
15081508 if (addon == null ) {
15091509 addon = SkriptAddon .fromModern (instance ());
@@ -1518,7 +1518,7 @@ public static SkriptAddon getAddonInstance() {
15181518 * @deprecated This method exists solely for compatibility reasons.
15191519 */
15201520 @ ApiStatus .Internal
1521- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1521+ @ Deprecated (since = "2.14 " , forRemoval = true )
15221522 public static Origin getSyntaxOrigin (Class <?> source ) {
15231523 JavaPlugin plugin ;
15241524 try {
@@ -1542,7 +1542,7 @@ public static Origin getSyntaxOrigin(Class<?> source) {
15421542 * Create a {@link SyntaxInfo} with {@link SyntaxInfo#builder(Class)}.
15431543 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
15441544 */
1545- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1545+ @ Deprecated (since = "2.14 " , forRemoval = true )
15461546 public static <E extends Condition > void registerCondition (Class <E > conditionClass , String ... patterns ) throws IllegalArgumentException {
15471547 registerCondition (conditionClass , ConditionType .COMBINED , patterns );
15481548 }
@@ -1558,7 +1558,7 @@ public static <E extends Condition> void registerCondition(Class<E> conditionCla
15581558 * Specify a custom priority ({@link SyntaxInfo.Builder#priority(Priority)}) to replace {@code type}.
15591559 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
15601560 */
1561- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1561+ @ Deprecated (since = "2.14 " , forRemoval = true )
15621562 public static <E extends Condition > void registerCondition (Class <E > conditionClass , ConditionType type , String ... patterns ) throws IllegalArgumentException {
15631563 checkAcceptRegistrations ();
15641564 skript .syntaxRegistry ().register (SyntaxRegistry .CONDITION , SyntaxInfo .builder (conditionClass )
@@ -1578,7 +1578,7 @@ public static <E extends Condition> void registerCondition(Class<E> conditionCla
15781578 * Create a {@link SyntaxInfo} with {@link SyntaxInfo#builder(Class)}.
15791579 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
15801580 */
1581- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1581+ @ Deprecated (since = "2.14 " , forRemoval = true )
15821582 public static <E extends Effect > void registerEffect (Class <E > effectClass , String ... patterns ) throws IllegalArgumentException {
15831583 checkAcceptRegistrations ();
15841584 skript .syntaxRegistry ().register (SyntaxRegistry .EFFECT , SyntaxInfo .builder (effectClass )
@@ -1598,7 +1598,7 @@ public static <E extends Effect> void registerEffect(Class<E> effectClass, Strin
15981598 * Create a {@link SyntaxInfo} with {@link SyntaxInfo#builder(Class)}.
15991599 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
16001600 */
1601- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1601+ @ Deprecated (since = "2.14 " , forRemoval = true )
16021602 public static <E extends Section > void registerSection (Class <E > sectionClass , String ... patterns ) throws IllegalArgumentException {
16031603 checkAcceptRegistrations ();
16041604 skript .syntaxRegistry ().register (SyntaxRegistry .SECTION , SyntaxInfo .builder (sectionClass )
@@ -1612,7 +1612,7 @@ public static <E extends Section> void registerSection(Class<E> sectionClass, St
16121612 * @deprecated Use {@link SyntaxRegistry#syntaxes(Key)} with {@link SyntaxRegistry#STATEMENT}.
16131613 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
16141614 */
1615- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1615+ @ Deprecated (since = "2.14 " , forRemoval = true )
16161616 public static @ Unmodifiable Collection <SyntaxElementInfo <? extends Statement >> getStatements () {
16171617 return instance ().syntaxRegistry ()
16181618 .syntaxes (SyntaxRegistry .STATEMENT ).stream ()
@@ -1624,7 +1624,7 @@ public static <E extends Section> void registerSection(Class<E> sectionClass, St
16241624 * @deprecated Use {@link SyntaxRegistry#syntaxes(Key)} with {@link SyntaxRegistry#CONDITION}.
16251625 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
16261626 */
1627- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1627+ @ Deprecated (since = "2.14 " , forRemoval = true )
16281628 public static @ Unmodifiable Collection <SyntaxElementInfo <? extends Condition >> getConditions () {
16291629 return instance ().syntaxRegistry ()
16301630 .syntaxes (SyntaxRegistry .CONDITION ).stream ()
@@ -1636,7 +1636,7 @@ public static <E extends Section> void registerSection(Class<E> sectionClass, St
16361636 * @deprecated Use {@link SyntaxRegistry#syntaxes(Key)} with {@link SyntaxRegistry#EFFECT}.
16371637 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
16381638 */
1639- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1639+ @ Deprecated (since = "2.14 " , forRemoval = true )
16401640 public static @ Unmodifiable Collection <SyntaxElementInfo <? extends Effect >> getEffects () {
16411641 return instance ().syntaxRegistry ()
16421642 .syntaxes (SyntaxRegistry .EFFECT ).stream ()
@@ -1648,7 +1648,7 @@ public static <E extends Section> void registerSection(Class<E> sectionClass, St
16481648 * @deprecated Use {@link SyntaxRegistry#syntaxes(Key)} with {@link SyntaxRegistry#SECTION}.
16491649 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
16501650 */
1651- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1651+ @ Deprecated (since = "2.14 " , forRemoval = true )
16521652 public static @ Unmodifiable Collection <SyntaxElementInfo <? extends Section >> getSections () {
16531653 return instance ().syntaxRegistry ()
16541654 .syntaxes (SyntaxRegistry .SECTION ).stream ()
@@ -1671,7 +1671,7 @@ public static <E extends Section> void registerSection(Class<E> sectionClass, St
16711671 * Specify a custom priority ({@link SyntaxInfo.Builder#priority(Priority)}) to replace {@code type}.
16721672 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
16731673 */
1674- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1674+ @ Deprecated (since = "2.14 " , forRemoval = true )
16751675 public static <E extends Expression <T >, T > void registerExpression (
16761676 Class <E > expressionClass , Class <T > returnType , ExpressionType type , String ... patterns
16771677 ) throws IllegalArgumentException {
@@ -1688,7 +1688,7 @@ public static <E extends Expression<T>, T> void registerExpression(
16881688 * @deprecated Use {@link SyntaxRegistry#syntaxes(Key)} with {@link SyntaxRegistry#EXPRESSION}.
16891689 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
16901690 */
1691- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1691+ @ Deprecated (since = "2.14 " , forRemoval = true )
16921692 public static Iterator <ExpressionInfo <?, ?>> getExpressions () {
16931693 List <ExpressionInfo <?, ?>> list = new ArrayList <>();
16941694 for (SyntaxInfo .Expression <?, ?> info : instance ().syntaxRegistry ().syntaxes (SyntaxRegistry .EXPRESSION ))
@@ -1701,7 +1701,7 @@ public static <E extends Expression<T>, T> void registerExpression(
17011701 * Use {@link SyntaxRegistry#syntaxes(Key)} with {@link SyntaxRegistry#SECTION} and filter the results.
17021702 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
17031703 */
1704- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1704+ @ Deprecated (since = "2.14 " , forRemoval = true )
17051705 public static Iterator <ExpressionInfo <?, ?>> getExpressions (Class <?>... returnTypes ) {
17061706 return new CheckedIterator <>(getExpressions (), info -> {
17071707 if (info == null || info .returnType == Object .class )
@@ -1731,7 +1731,7 @@ public static <E extends Expression<T>, T> void registerExpression(
17311731 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
17321732 */
17331733 @ SuppressWarnings ("unchecked" )
1734- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1734+ @ Deprecated (since = "2.14 " , forRemoval = true )
17351735 public static <E extends SkriptEvent > SkriptEventInfo <E > registerEvent (String name , Class <E > c , Class <? extends Event > event , String ... patterns ) {
17361736 return registerEvent (name , c , new Class [] {event }, patterns );
17371737 }
@@ -1749,7 +1749,7 @@ public static <E extends SkriptEvent> SkriptEventInfo<E> registerEvent(String na
17491749 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
17501750 */
17511751 @ SuppressWarnings ("ConstantConditions" ) // caused by bad array annotations
1752- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1752+ @ Deprecated (since = "2.14 " , forRemoval = true )
17531753 public static <E extends SkriptEvent > SkriptEventInfo <E > registerEvent (
17541754 String name , Class <E > eventClass , Class <? extends Event >[] events , String ... patterns
17551755 ) {
@@ -1766,7 +1766,7 @@ public static <E extends SkriptEvent> SkriptEventInfo<E> registerEvent(
17661766 * Create a {@link SyntaxInfo.Structure} with {@link SyntaxInfo.Structure#builder(Class)}.
17671767 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
17681768 */
1769- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1769+ @ Deprecated (since = "2.14 " , forRemoval = true )
17701770 public static <E extends Structure > void registerStructure (Class <E > structureClass , String ... patterns ) {
17711771 checkAcceptRegistrations ();
17721772 skript .syntaxRegistry ().register (SyntaxRegistry .STRUCTURE , SyntaxInfo .Structure .builder (structureClass )
@@ -1781,7 +1781,7 @@ public static <E extends Structure> void registerStructure(Class<E> structureCla
17811781 * Create a {@link SyntaxInfo.Structure} with {@link SyntaxInfo.Structure#builder(Class)}.
17821782 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
17831783 */
1784- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1784+ @ Deprecated (since = "2.14 " , forRemoval = true )
17851785 public static <E extends Structure > void registerSimpleStructure (Class <E > structureClass , String ... patterns ) {
17861786 checkAcceptRegistrations ();
17871787 skript .syntaxRegistry ().register (SyntaxRegistry .STRUCTURE , SyntaxInfo .Structure .builder (structureClass )
@@ -1797,7 +1797,7 @@ public static <E extends Structure> void registerSimpleStructure(Class<E> struct
17971797 * Create a {@link SyntaxInfo.Structure} with {@link SyntaxInfo.Structure#builder(Class)}.
17981798 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
17991799 */
1800- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1800+ @ Deprecated (since = "2.14 " , forRemoval = true )
18011801 public static <E extends Structure > void registerStructure (
18021802 Class <E > structureClass , EntryValidator entryValidator , String ... patterns
18031803 ) {
@@ -1809,7 +1809,7 @@ public static <E extends Structure> void registerStructure(
18091809 * Create a {@link SyntaxInfo.Structure} with {@link SyntaxInfo.Structure#builder(Class)}.
18101810 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
18111811 */
1812- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1812+ @ Deprecated (since = "2.14 " , forRemoval = true )
18131813 public static <E extends Structure > void registerStructure (
18141814 Class <E > structureClass , EntryValidator entryValidator , DefaultSyntaxInfos .Structure .NodeType nodeType , String ... patterns
18151815 ) {
@@ -1827,7 +1827,7 @@ public static <E extends Structure> void registerStructure(
18271827 * @deprecated Use {@link SyntaxRegistry#syntaxes(Key)} with {@link BukkitSyntaxInfos.Event#KEY}.
18281828 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
18291829 */
1830- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1830+ @ Deprecated (since = "2.14 " , forRemoval = true )
18311831 public static @ Unmodifiable Collection <SkriptEventInfo <?>> getEvents () {
18321832 return instance ().syntaxRegistry ()
18331833 .syntaxes (BukkitSyntaxInfos .Event .KEY ).stream ()
@@ -1839,7 +1839,7 @@ public static <E extends Structure> void registerStructure(
18391839 * @deprecated Use {@link SyntaxRegistry#syntaxes(Key)} with {@link SyntaxRegistry#STRUCTURE}.
18401840 * Obtain a {@link SyntaxRegistry} through {@link org.skriptlang.skript.addon.SkriptAddon#syntaxRegistry()}.
18411841 */
1842- @ Deprecated (since = "INSERT VERSION " , forRemoval = true )
1842+ @ Deprecated (since = "2.14 " , forRemoval = true )
18431843 public static @ Unmodifiable List <StructureInfo <? extends Structure >> getStructures () {
18441844 return instance ().syntaxRegistry ()
18451845 .syntaxes (SyntaxRegistry .STRUCTURE ).stream ()
0 commit comments