Use this class to extend this plugin's functionality by adding more {@link Condition conditions}, {@link Effect effects}, {@link SimpleExpression expressions}, etc.
If your plugin.yml contains 'depend: [Skript]' then your plugin will not start at all if Skript is not present. Add 'softdepend: [Skript]' to your plugin.yml if you want your plugin to work even if Skript isn't present, but want to make sure that Skript gets loaded before your plugin.
If you use 'softdepend' you can test whether Skript is loaded with 'Bukkit.getPluginManager().getPlugin("Skript") != null'
Once you made sure that Skript is loaded you can use Skript.getInstance()
whenever you need a reference to the plugin, but you likely won't need it since all API methods are static.
@author Peter Güttinger
@see #registerAddon(JavaPlugin)
@see #registerCondition(Class,String)
@see #registerEffect(Class,String)
@see #registerExpression(Class,Class,ExpressionType,String)
@see #registerEvent(String,Class,Class,String)
@see EventValues#registerEventValue(Class,Class,Getter,int)
@see Classes#registerClass(ClassInfo)
@see Comparators#registerComparator(Class,Class,Comparator)
@see Converters#registerConverter(Class,Class,Converter)
|
|