Skip to content

Commit

Permalink
1.6 Update
Browse files Browse the repository at this point in the history
  • Loading branch information
eyesniper2 committed Jan 12, 2024
1 parent c867a42 commit 1a545ea
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ buildscript {
}

group 'net.skripthub'
version '1.5'
version '1.6'

apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'java'
Expand All @@ -43,7 +43,7 @@ repositories {
}

dependencies {
implementation 'com.github.SkriptLang:Skript:master-SNAPSHOT'
implementation 'com.github.SkriptLang:Skript:2.8.0-pre2'

implementation group: 'org.spigotmc', name: 'spigot-api', version:'1.17-R0.1-SNAPSHOT'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ class BuildDocs(private val instance: JavaPlugin, private val sender: CommandSen

private fun getAddon(skriptEventInfo: SyntaxElementInfo<*>): AddonData? {

var name = skriptEventInfo.c.`package`.name
var name = skriptEventInfo.getElementClass().`package`.name

if (name == "ch.njol.skript.lang.util"){
// Used Simple event or expression registration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class GenerateSyntax {

fun generateSyntaxFromSyntaxElementInfo(info: SyntaxElementInfo<*>, sender: CommandSender?): SyntaxData? {
val data = SyntaxData()
val syntaxInfoClass = info.c
val syntaxInfoClass = info.getElementClass()
if (syntaxInfoClass.isAnnotationPresent(NoDoc::class.java))
return null
if (syntaxInfoClass.isAnnotationPresent(Name::class.java))
Expand Down Expand Up @@ -108,7 +108,7 @@ class GenerateSyntax {

fun generateSyntaxFromStructureInfo(info: StructureInfo<*>): SyntaxData? {
val data = SyntaxData()
val syntaxInfoClass = info.c
val syntaxInfoClass = info.getElementClass()
if (syntaxInfoClass.isAnnotationPresent(NoDoc::class.java))
return null
if (syntaxInfoClass.isAnnotationPresent(Name::class.java))
Expand Down Expand Up @@ -146,7 +146,7 @@ class GenerateSyntax {
else
data.returnType = "Object"
val array = ArrayList<String>()
val expr = ReflectionUtils.newInstance(info.c)
val expr = ReflectionUtils.newInstance(info.getElementClass())
try {
for (mode in Changer.ChangeMode.values()) {
if (Changer.ChangerUtils.acceptsChange(expr, mode, *classes))
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ author: eyesniper2
website: https://skripthub.net/
depend: [Skript]
prefix: Skript Hub Docs Tool
version: 1.5
version: 1.6

permissions:
docstool.command.gendocs:
Expand Down

0 comments on commit 1a545ea

Please sign in to comment.