mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-08 00:32:12 +00:00
Fix UNIX file path replace for plugins
This commit is contained in:
@@ -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