Skip to content

Commit 9313dbb

Browse files
committed
Fix No Such File Bug
1 parent fd14be1 commit 9313dbb

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<artifactId>QuickShop</artifactId>
2626

2727
<properties>
28-
<pluginver>5.0.0.0</pluginver>
28+
<pluginver>5.0.0.1</pluginver>
2929
<package>org.maxgamer.quickshop</package>
3030
<developer>Ghost-chu</developer>
3131
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

src/main/java/org/maxgamer/quickshop/BuiltInSolution.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
/**
2525
* A class to check known issues that cause plugin boot failure.
2626
*/
27-
class BuiltInSolution {
27+
public class BuiltInSolution {
2828

2929
/**
3030
* Call îf database failed to load. This checks the failure reason.
3131
*
3232
* @return The error reason.
3333
*/
34-
static BootError databaseError() {
34+
public static BootError databaseError() {
3535
return new BootError(QuickShop.getInstance().getLogger(),
3636
"Error connecting to the database!",
3737
"Please make sure your database service is running.",
@@ -43,7 +43,7 @@ static BootError databaseError() {
4343
*
4444
* @return The error reason.
4545
*/
46-
static BootError econError() {
46+
public static BootError econError() {
4747
// Check if Vault is installed
4848
if (QuickShop.getInstance().getServer().getPluginManager().getPlugin("Vault") == null) {
4949
// Vault is not installed

src/main/java/org/maxgamer/quickshop/localization/text/SimpleTextManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ private JsonConfiguration getDistributionConfiguration(@NotNull String distribut
227227
* @throws InvalidConfigurationException File invalid
228228
*/
229229
private JsonConfiguration getOverrideConfiguration(@NotNull String overrideFile, @NotNull String locale) throws IOException, InvalidConfigurationException {
230-
File localOverrideFile = new File(getOverrideFilesFolder(overrideFile), locale + ".json");
230+
File localOverrideFile = new File(getOverrideFilesFolder(overrideFile.replace("%locale%", locale)), locale + ".json");
231231
if (!localOverrideFile.exists()) {
232232
localOverrideFile.getParentFile().mkdirs();
233233
localOverrideFile.createNewFile();

0 commit comments

Comments
 (0)