mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-07 08:39:07 +00:00
Fix UNIX file path replace for plugins
This commit is contained in:
@@ -52,7 +52,7 @@ public final class PluginService {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Finds plugins in a specified directory.
|
* Finds plugins in a specified directory.
|
||||||
*
|
*
|
||||||
* @param dir
|
* @param dir
|
||||||
* The directory to check for plugins.
|
* The directory to check for plugins.
|
||||||
*
|
*
|
||||||
@@ -65,12 +65,17 @@ public final class PluginService {
|
|||||||
|
|
||||||
base = base.replace("\\", ".");
|
base = base.replace("\\", ".");
|
||||||
|
|
||||||
|
base = base.replace("/", ".");
|
||||||
|
|
||||||
base = base.replace("..plugins.", "");
|
base = base.replace("..plugins.", "");
|
||||||
|
|
||||||
base = base.replace(".kt", "");
|
base = base.replace(".kt", "");
|
||||||
|
|
||||||
base = base.replace(".java", "");
|
base = base.replace(".java", "");
|
||||||
|
|
||||||
|
System.out.println(base);
|
||||||
|
System.out.println(dir.getName());
|
||||||
|
|
||||||
if (!file.isDirectory()) {
|
if (!file.isDirectory()) {
|
||||||
try {
|
try {
|
||||||
Class<?> clazz = Class.forName(base);
|
Class<?> clazz = Class.forName(base);
|
||||||
|
|||||||
Reference in New Issue
Block a user