mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-13 19:21:53 +01:00
Make it static.
This commit is contained in:
parent
71446a12af
commit
1d7d2cd52e
@ -97,7 +97,7 @@ public class mcMMO extends JavaPlugin {
|
||||
public static RepairManager repairManager;
|
||||
|
||||
/* Jar Stuff */
|
||||
public File mcmmo;
|
||||
public static File mcmmo;
|
||||
|
||||
//File Paths
|
||||
public static String mainDirectory;
|
||||
|
@ -54,8 +54,8 @@ public class SpoutStuff {
|
||||
private static void writeFile(String theFileName, String theFilePath) {
|
||||
try {
|
||||
File currentFile = new File(theFilePath + theFileName);
|
||||
|
||||
JarFile jar = new JarFile(plugin.mcmmo);
|
||||
|
||||
JarFile jar = new JarFile(mcMMO.mcmmo);
|
||||
JarEntry entry = jar.getJarEntry("resources/" + theFileName);
|
||||
InputStream is = jar.getInputStream(entry);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user