Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionFreezes server on call. Use
Aliases.loadAsync()instead.UseItemData(BlockData)instead.before 1.13 is no longer supported.UseItemType(BlockData)instead.UseItemType.addEnchantments(EnchantmentType...)instead.UseItemType.getEnchantmentTypes()instead.UseItemType.isOfType(BlockData)instead.This shouldn't be usedUseBlockCompat.getBlockValues(BlockData)instead.UseNewBlockCompat.getBlockValues(BlockData)instead.PreferBukkitUnsafe.getMaterialFromNamespacedId(String)for including modded item supportUseRegistry.MOB_EFFECTorRegistry.EFFECTdepending on your version.this method is only used by EffTeleport, and with the recent additions of TeleportFlag, this method should be moved within that effect.This just returns itself and has no useuseBukkit.getOnlinePlayers()instead.UsePropertyinstead.UseConverterinstead.ch.njol.skript.classes.Converter.ConverterUtils.createInstanceofConverter(Converter<F, ?>, Class<T>) ch.njol.skript.classes.Converter.ConverterUtils.createInstanceofConverter(Class<F>, Converter<F, T>) usePredicateinstead.UseCommands.scriptCommandExists(String)instead.This copies all values from the other config and sets them in this config, which could be destructive for sensitive data if something goes wrong. Also removes user comments. UseConfig.updateNodes(Config)instead.This copies all values from the other config and sets them in this config, which could be destructive for sensitive data if something goes wrong. Also removes user comments. UseConfig.updateNodes(Config)instead.UseEnumParserinstead.UseSectionNode.add(int, Node)instead.UseJSONGeneratorinstead.UseJSONGenerator.of(SkriptAddon)instead.UseJSONGenerator.generate(Path)instead.This has been replaced byPriority. See the documentation of each element to determine their replacements.This has been replaced byPriority. See the documentation of each element to determine their replacements.UseFunction.execute(FunctionEvent, FunctionArguments)instead.UseFunction.execute(FunctionEvent, FunctionArguments)instead.UseSignature.parameters()andParameters.get(int)instead.UseSignature.parameters()andParameters.all()instead.UseFunctionReferenceinstead.in favour ofFunctions.getGlobalFunction(String)for proper name.UseFunctions.getFunctions()instead.in favour ofFunctions.getGlobalSignature(String)for proper name.UseFunctions.register(DefaultFunction)instead.UseDefaultFunctioninstead.UseParameter.name()instead.UseParameter.type()instead.UseScriptParameter.parse(String, Class, String)} instead.Useinstead.invalid reference
ch.njol.skript.structures.StructFunction.FunctionParser#parse(String, String, String, String, boolean)Unused.UseSignature.getParameter(String)orSignature.parameters()instead.UseSignature.parameters()instead.UseDefaultFunctioninstead.SeeScriptLoader.LoaderEventinstead.UseParserInstance.setCurrentStructure(Structure)with 'null' instead.UseScript.getData(Class)instead. TheStructOptions.OptionsDataclass should be obtained. Example:script.getData(OptionsData.class)UseParserInstance.getCurrentStructure()instead.Addons should no longer be modifying this.UseParserInstance.setCurrentStructure(Structure)instead.RegularStructuremethods should be used. See individual methods for their equivalents.UseSelfRegisteringSkriptEvent.postLoad()instead.This method's functionality can be replaced by overridingSelfRegisteringSkriptEvent.postLoad(). Normally, that method would register the parsed trigger withSkriptEventHandler. A reference to theTriggeris available throughSkriptEvent.trigger.This method's functionality can be replaced by overridingSelfRegisteringSkriptEvent.unload(). Normally, that method would unregister the parsed trigger withSkriptEventHandler. A reference to theTriggeris available throughSkriptEvent.trigger.This method should no longer be used. Each trigger should be unregistered throughSelfRegisteringSkriptEvent.unregister(Trigger).This class exists solely for compatibility reasons.UseSkriptParser.parseFunctionReference()instead.UseSyntaxInfo(SyntaxInfo.builder(Class)) instead. Note that some syntax types have specificSyntaxInfoimplementations that they require.UseProperty.AMOUNTinstead.UseProperty.CONTAINSinstead.UseProperty.NAMEinstead.UsePropertyinstead.UseProperty.TYPED_VALUEinstead.UseConvertersinstead.UseEventValues.hasMultipleConverters(Class, Class, int)instead.UseSkript.addon(String). Obtain a Skript instance withSkript.instance().There is no exact replacement for this method. Consider usingSkript.getAddon(String)with the name of the plugin (PluginBase.getName()). Obtain a Skript instance withSkript.instance().UseSkript.instance()instead.UseSkript.addons(). Obtain a Skript instance withSkript.instance().UseSyntaxRegistry.syntaxes(Key)withSyntaxRegistry.CONDITION. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.syntaxes(Key)withSyntaxRegistry.EFFECT. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.syntaxes(Key)withBukkitSyntaxInfos.Event.KEY. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.syntaxes(Key)withSyntaxRegistry.EXPRESSION. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().There is no exact replacement for this method. UseSyntaxRegistry.syntaxes(Key)withSyntaxRegistry.SECTIONand filter the results. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.syntaxes(Key)withSyntaxRegistry.SECTION. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.syntaxes(Key)withSyntaxRegistry.STATEMENT. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.syntaxes(Key)withSyntaxRegistry.STRUCTURE. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().This method exists solely for compatibility reasons.UseSkript.registerAddon(Class, String). Obtain a Skript instance withSkript.instance().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.CONDITION. Create aSyntaxInfowithSyntaxInfo.builder(Class). Specify a custom priority (SyntaxInfo.Builder.priority(Priority)) to replacetype. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.CONDITION. Create aSyntaxInfowithSyntaxInfo.builder(Class). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.EFFECT. Create aSyntaxInfowithSyntaxInfo.builder(Class). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withBukkitSyntaxInfos.Event.KEY. Create aBukkitSyntaxInfos.EventwithBukkitSyntaxInfos.Event.builder(Class, String). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withBukkitSyntaxInfos.Event.KEY. Create aBukkitSyntaxInfos.EventwithBukkitSyntaxInfos.Event.builder(Class, String). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.EXPRESSION. Create aDefaultSyntaxInfos.ExpressionwithDefaultSyntaxInfos.Expression.builder(Class, Class). Specify a custom priority (SyntaxInfo.Builder.priority(Priority)) to replacetype. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.SECTION. Create aSyntaxInfowithSyntaxInfo.builder(Class). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.STRUCTURE. Create aDefaultSyntaxInfos.StructurewithDefaultSyntaxInfos.Structure.builder(Class). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.STRUCTURE. Create aDefaultSyntaxInfos.StructurewithDefaultSyntaxInfos.Structure.builder(Class). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.STRUCTURE. Create aDefaultSyntaxInfos.StructurewithDefaultSyntaxInfos.Structure.builder(Class). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.STRUCTURE. Create aDefaultSyntaxInfos.StructurewithDefaultSyntaxInfos.Structure.builder(Class). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSkriptAddoninstead. Register usingSkript.registerAddon(Class, String). Obtain a Skript instance withSkript.instance().UseScriptLoader.getScriptFromName(String)instead.This method no longer does anything as self registered Triggers. are unloaded when theSkriptEventis unloaded (no need to keep tracking them here).Users should specify the listening behavior in the event declaration. "on any %event%:", "on cancelled %event%:".UseDate.getTime()instead.UseItemType.hasEnchantments(Enchantment...)instead.UseEnumParserinstead.useConverterinstead.Magic numbersMagic numbersUseEquipmentSlot,EntityEquipmentinstead.UseTimespan(TimePeriod, long)instead.UseTimespan(TimePeriod, long)instead.UseTimespan.getAs(TimePeriod)instead.UseTimespan.getAs(TimePeriod)instead.UseTimespan.getAs(TimePeriod)instead.UseClassLoaderinstead.UseUtils.isPlural(String)instead.UseHintManager.useFunctioninstead.useString.equalsIgnoreCase(String)instead.usePredicateinstead.useCloseableinstead.UseBiMapinstead.UseBiMapinstead.unuseduseIterators.concat(Iterator[])instead.useIteratorinstead.unusedunusedunusedUse a use-case specific record.Use a use-case specific record instead.usePredicateinstead.useConsumerinstead.UseParameter.isSingle()instead.This method will be removed in a future version. If the EntryContainer is needed outside ofStructure.init(Literal[], int, ParseResult, EntryContainer), the Structure should keep a reference to it.
-
Deprecated InterfacesInterfaceDescriptionUse
Converterinstead.usePredicateinstead.UseProperty.AMOUNTinstead.UseProperty.CONTAINSinstead.UseProperty.NAMEinstead.UsePropertyinstead.UseProperty.TYPED_VALUEinstead.useFunctioninstead.usePredicateinstead.useCloseableinstead.UseBiMapinstead.usePredicateinstead.useConsumerinstead.
-
Deprecated ClassesClassDescriptionUse
Propertyinstead.UseEnumParserinstead.UseJSONGeneratorinstead.UseFunctionReferenceinstead.UseDefaultFunctioninstead.UseDefaultFunctioninstead.RegularStructuremethods should be used. See individual methods for their equivalents.This class exists solely for compatibility reasons.UseSyntaxInfo(SyntaxInfo.builder(Class)) instead. Note that some syntax types have specificSyntaxInfoimplementations that they require.UseConvertersinstead.UseSkriptAddoninstead. Register usingSkript.registerAddon(Class, String). Obtain a Skript instance withSkript.instance().UseEnumParserinstead.useConverterinstead.UseHintManager.useString.equalsIgnoreCase(String)instead.UseBiMapinstead.unuseduseIterators.concat(Iterator[])instead.useIteratorinstead.unusedunusedunusedUse a use-case specific record.Use a use-case specific record instead.
-
Deprecated Enum Classes
-
Deprecated FieldsFieldDescriptionbefore 1.13 is no longer supported.Users should specify the listening behavior in the event declaration. "on any %event%:", "on cancelled %event%:".
-
Deprecated MethodsMethodDescriptionFreezes server on call. Use
Aliases.loadAsync()instead.UseItemType.addEnchantments(EnchantmentType...)instead.UseItemType.getEnchantmentTypes()instead.UseItemType.isOfType(BlockData)instead.This shouldn't be usedUseBlockCompat.getBlockValues(BlockData)instead.UseNewBlockCompat.getBlockValues(BlockData)instead.PreferBukkitUnsafe.getMaterialFromNamespacedId(String)for including modded item supportUseRegistry.MOB_EFFECTorRegistry.EFFECTdepending on your version.this method is only used by EffTeleport, and with the recent additions of TeleportFlag, this method should be moved within that effect.This just returns itself and has no useuseBukkit.getOnlinePlayers()instead.ch.njol.skript.classes.Converter.ConverterUtils.createInstanceofConverter(Converter<F, ?>, Class<T>) ch.njol.skript.classes.Converter.ConverterUtils.createInstanceofConverter(Class<F>, Converter<F, T>) UseCommands.scriptCommandExists(String)instead.This copies all values from the other config and sets them in this config, which could be destructive for sensitive data if something goes wrong. Also removes user comments. UseConfig.updateNodes(Config)instead.This copies all values from the other config and sets them in this config, which could be destructive for sensitive data if something goes wrong. Also removes user comments. UseConfig.updateNodes(Config)instead.UseSectionNode.add(int, Node)instead.UseJSONGenerator.generate(Path)instead.UseFunction.execute(FunctionEvent, FunctionArguments)instead.UseFunction.execute(FunctionEvent, FunctionArguments)instead.UseSignature.parameters()andParameters.get(int)instead.UseSignature.parameters()andParameters.all()instead.in favour ofFunctions.getGlobalFunction(String)for proper name.UseFunctions.getFunctions()instead.in favour ofFunctions.getGlobalSignature(String)for proper name.UseFunctions.register(DefaultFunction)instead.UseParameter.name()instead.UseParameter.type()instead.UseScriptParameter.parse(String, Class, String)} instead.Useinstead.invalid reference
ch.njol.skript.structures.StructFunction.FunctionParser#parse(String, String, String, String, boolean)Unused.UseSignature.getParameter(String)orSignature.parameters()instead.UseSignature.parameters()instead.SeeScriptLoader.LoaderEventinstead.UseParserInstance.setCurrentStructure(Structure)with 'null' instead.UseScript.getData(Class)instead. TheStructOptions.OptionsDataclass should be obtained. Example:script.getData(OptionsData.class)UseParserInstance.getCurrentStructure()instead.Addons should no longer be modifying this.UseParserInstance.setCurrentStructure(Structure)instead.UseSelfRegisteringSkriptEvent.postLoad()instead.This method's functionality can be replaced by overridingSelfRegisteringSkriptEvent.postLoad(). Normally, that method would register the parsed trigger withSkriptEventHandler. A reference to theTriggeris available throughSkriptEvent.trigger.This method's functionality can be replaced by overridingSelfRegisteringSkriptEvent.unload(). Normally, that method would unregister the parsed trigger withSkriptEventHandler. A reference to theTriggeris available throughSkriptEvent.trigger.This method should no longer be used. Each trigger should be unregistered throughSelfRegisteringSkriptEvent.unregister(Trigger).UseSkriptParser.parseFunctionReference()instead.UseEventValues.hasMultipleConverters(Class, Class, int)instead.UseSkript.addon(String). Obtain a Skript instance withSkript.instance().There is no exact replacement for this method. Consider usingSkript.getAddon(String)with the name of the plugin (PluginBase.getName()). Obtain a Skript instance withSkript.instance().UseSkript.instance()instead.UseSkript.addons(). Obtain a Skript instance withSkript.instance().UseSyntaxRegistry.syntaxes(Key)withSyntaxRegistry.CONDITION. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.syntaxes(Key)withSyntaxRegistry.EFFECT. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.syntaxes(Key)withBukkitSyntaxInfos.Event.KEY. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.syntaxes(Key)withSyntaxRegistry.EXPRESSION. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().There is no exact replacement for this method. UseSyntaxRegistry.syntaxes(Key)withSyntaxRegistry.SECTIONand filter the results. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.syntaxes(Key)withSyntaxRegistry.SECTION. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.syntaxes(Key)withSyntaxRegistry.STATEMENT. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.syntaxes(Key)withSyntaxRegistry.STRUCTURE. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().This method exists solely for compatibility reasons.UseSkript.registerAddon(Class, String). Obtain a Skript instance withSkript.instance().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.CONDITION. Create aSyntaxInfowithSyntaxInfo.builder(Class). Specify a custom priority (SyntaxInfo.Builder.priority(Priority)) to replacetype. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.CONDITION. Create aSyntaxInfowithSyntaxInfo.builder(Class). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.EFFECT. Create aSyntaxInfowithSyntaxInfo.builder(Class). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withBukkitSyntaxInfos.Event.KEY. Create aBukkitSyntaxInfos.EventwithBukkitSyntaxInfos.Event.builder(Class, String). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withBukkitSyntaxInfos.Event.KEY. Create aBukkitSyntaxInfos.EventwithBukkitSyntaxInfos.Event.builder(Class, String). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.EXPRESSION. Create aDefaultSyntaxInfos.ExpressionwithDefaultSyntaxInfos.Expression.builder(Class, Class). Specify a custom priority (SyntaxInfo.Builder.priority(Priority)) to replacetype. Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.SECTION. Create aSyntaxInfowithSyntaxInfo.builder(Class). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.STRUCTURE. Create aDefaultSyntaxInfos.StructurewithDefaultSyntaxInfos.Structure.builder(Class). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.STRUCTURE. Create aDefaultSyntaxInfos.StructurewithDefaultSyntaxInfos.Structure.builder(Class). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.STRUCTURE. Create aDefaultSyntaxInfos.StructurewithDefaultSyntaxInfos.Structure.builder(Class). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseSyntaxRegistry.register(Key, SyntaxInfo)withSyntaxRegistry.STRUCTURE. Create aDefaultSyntaxInfos.StructurewithDefaultSyntaxInfos.Structure.builder(Class). Obtain aSyntaxRegistrythroughSkriptAddon.syntaxRegistry().UseScriptLoader.getScriptFromName(String)instead.This method no longer does anything as self registered Triggers. are unloaded when theSkriptEventis unloaded (no need to keep tracking them here).UseDate.getTime()instead.UseItemType.hasEnchantments(Enchantment...)instead.Magic numbersMagic numbersUseTimespan(TimePeriod, long)instead.UseTimespan(TimePeriod, long)instead.UseTimespan.getAs(TimePeriod)instead.UseTimespan.getAs(TimePeriod)instead.UseTimespan.getAs(TimePeriod)instead.UseClassLoaderinstead.UseUtils.isPlural(String)instead.UseParameter.isSingle()instead.This method will be removed in a future version. If the EntryContainer is needed outside ofStructure.init(Literal[], int, ParseResult, EntryContainer), the Structure should keep a reference to it.
-
Deprecated ConstructorsConstructorDescriptionUse
ItemData(BlockData)instead.UseItemType(BlockData)instead.UseJSONGenerator.of(SkriptAddon)instead.
-
Deprecated Enum ConstantsEnum ConstantDescriptionUse
SyntaxInfo.COMBINED.UsePropertyCondition.DEFAULT_PRIORITY.UseSyntaxInfo.COMBINED.UseEventValueExpression.DEFAULT_PRIORITY.UsePropertyExpression.DEFAULT_PRIORITY.UseSyntaxInfo.SIMPLE.