[FIX] getPackageFromClass

This commit is contained in:
Gravita 2022-04-07 01:39:40 +07:00
parent be565e2218
commit 2709cbe95f

View file

@ -61,7 +61,7 @@ public void run(ServerWrapper.Config config, String[] args) throws Throwable {
}
private static String getPackageFromClass(String clazz) {
int index = clazz.indexOf(".");
int index = clazz.lastIndexOf(".");
if(index >= 0) {
return clazz.substring(0, index);
}