feat: 优化方法调用
This commit is contained in:
parent
320cc0479e
commit
a041e8e2d2
@ -35,7 +35,7 @@ var global = this;
|
|||||||
var pluginYml;
|
var pluginYml;
|
||||||
|
|
||||||
function checkClassLoader() {
|
function checkClassLoader() {
|
||||||
var classLoader = java.lang.Thread.currentThread().getContextClassLoader();
|
var classLoader = java.lang.Thread.currentThread().contextClassLoader;
|
||||||
pluginYml = classLoader.getResource("plugin.yml");
|
pluginYml = classLoader.getResource("plugin.yml");
|
||||||
if (pluginYml === null) {
|
if (pluginYml === null) {
|
||||||
log.info("==================== ERROR ====================");
|
log.info("==================== ERROR ====================");
|
||||||
|
Loading…
Reference in New Issue
Block a user