mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-07 16:49:07 +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("/", ".");
|
||||||
|
|
||||||
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