Skip to content

Commit 0e084a6

Browse files
committed
SiNcE jDk9
1 parent eeea71a commit 0e084a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ apply plugin: 'kotlin'
1717
apply plugin: 'com.github.johnrengelman.shadow'
1818

1919
group 'me.devoxin'
20-
version '2.0.0a'
20+
version '2.0.1a'
2121
sourceCompatibility = 1.8
2222

2323
repositories {

src/main/kotlin/me/devoxin/flight/internal/utils/Indexer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class Indexer {
7979
require(meth.hasAnnotation<Command>()) { "${meth.name} is not annotated with Command!" }
8080

8181
val category = cog.name()
82-
?: cog::class.java.packageName.split('.').last().replace('_', ' ').toLowerCase().capitalize()
82+
?: cog::class.java.`package`.name.split('.').last().replace('_', ' ').toLowerCase().capitalize()
8383
val name = meth.name.toLowerCase()
8484
val properties = meth.findAnnotation<Command>()!!
8585
val cooldown = meth.findAnnotation<Cooldown>()

0 commit comments

Comments
 (0)