Moved everything in /assets/ to /assets/plan
@ -91,11 +91,11 @@ public class PlanFiles implements SubSystem {
|
|||||||
/**
|
/**
|
||||||
* Get a file in the jar as a {@link Resource}.
|
* Get a file in the jar as a {@link Resource}.
|
||||||
*
|
*
|
||||||
* @param resourceName Path to the file inside jar/assets/ folder.
|
* @param resourceName Path to the file inside jar/assets/plan/ folder.
|
||||||
* @return a {@link Resource} for accessing the resource.
|
* @return a {@link Resource} for accessing the resource.
|
||||||
*/
|
*/
|
||||||
public Resource getResourceFromJar(String resourceName) {
|
public Resource getResourceFromJar(String resourceName) {
|
||||||
return new JarResource("assets/" + resourceName, () -> plugin.getResource("assets/" + resourceName));
|
return new JarResource("assets/plan/" + resourceName, () -> plugin.getResource("assets/plan/" + resourceName));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -84,7 +84,7 @@ public abstract class ConfigSystem implements SubSystem {
|
|||||||
setDebugMode();
|
setDebugMode();
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
throw new EnableException("Failed to save default config.", e);
|
throw new EnableException("Failed to save default config: " + e.getMessage(), e);
|
||||||
}
|
}
|
||||||
theme.enable();
|
theme.enable();
|
||||||
}
|
}
|
||||||
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 557 B After Width: | Height: | Size: 557 B |
Before Width: | Height: | Size: 488 B After Width: | Height: | Size: 488 B |
Before Width: | Height: | Size: 478 B After Width: | Height: | Size: 478 B |
Before Width: | Height: | Size: 504 B After Width: | Height: | Size: 504 B |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 322 KiB After Width: | Height: | Size: 322 KiB |
Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB |