mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 10:36:09 +01:00
More descriptive module failure notice
This commit is contained in:
parent
778c41f254
commit
7c30a0ce8e
@ -178,7 +178,6 @@ public class Quests extends JavaPlugin implements QuestsAPI {
|
|||||||
try {
|
try {
|
||||||
Material.matchMaterial("STONE", true);
|
Material.matchMaterial("STONE", true);
|
||||||
} catch (final NoSuchMethodError ignored) {
|
} catch (final NoSuchMethodError ignored) {
|
||||||
// Do nothing
|
|
||||||
}
|
}
|
||||||
|
|
||||||
((org.apache.logging.log4j.core.Logger) LogManager.getRootLogger()).addFilter(new QuestsLog4JFilter());
|
((org.apache.logging.log4j.core.Logger) LogManager.getRootLogger()).addFilter(new QuestsLog4JFilter());
|
||||||
@ -1062,11 +1061,10 @@ public class Quests extends JavaPlugin implements QuestsAPI {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
getLogger().severe("Unable to load module from file: " + jar.getName()
|
getLogger().severe("Unable to load module from file " + jar.getName() + " (not a valid module)!");
|
||||||
+ ", file is not a valid module!");
|
|
||||||
}
|
}
|
||||||
} catch (final Exception e) {
|
} catch (final Exception e) {
|
||||||
getLogger().severe("Unable to load module from file: " + jar.getName());
|
getLogger().severe("Unable to load module from file " + jar.getName() + " (contact module developer)!");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user