Allow installing/uninstalling modules in-game

This commit is contained in:
2026-05-28 19:14:34 -04:00
parent 1a83e8355c
commit daac12792a
6 changed files with 173 additions and 54 deletions
@@ -36,6 +36,7 @@ public abstract class PlexModule
private ModuleConfiguration messages;
private PlexModuleFile plexModuleFile;
private File dataFolder;
private File moduleJar;
private Logger logger;
/**
@@ -228,6 +229,16 @@ public abstract class PlexModule
return dataFolder;
}
/**
* Returns the JAR file this module was loaded from.
*
* @return the JAR file this module was loaded from
*/
public File getModuleJar()
{
return moduleJar;
}
/**
* Returns the module logger.
*
@@ -362,6 +373,16 @@ public abstract class PlexModule
this.dataFolder = dataFolder;
}
/**
* Sets the JAR file this module was loaded from.
*
* @param moduleJar JAR file this module was loaded from
*/
public void setModuleJar(File moduleJar)
{
this.moduleJar = moduleJar;
}
/**
* Sets the module logger.
*