mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +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.
|
||||
*
|
||||
*
|
||||
* @param dir
|
||||
* The directory to check for plugins.
|
||||
*
|
||||
@@ -65,12 +65,17 @@ public final class PluginService {
|
||||
|
||||
base = base.replace("\\", ".");
|
||||
|
||||
base = base.replace("/", ".");
|
||||
|
||||
base = base.replace("..plugins.", "");
|
||||
|
||||
base = base.replace(".kt", "");
|
||||
|
||||
base = base.replace(".java", "");
|
||||
|
||||
System.out.println(base);
|
||||
System.out.println(dir.getName());
|
||||
|
||||
if (!file.isDirectory()) {
|
||||
try {
|
||||
Class<?> clazz = Class.forName(base);
|
||||
|
||||
Reference in New Issue
Block a user