Skip to content

Commit bcaaa0e

Browse files
[1.13.15.1]修复CrypticLib初始化失败的问题
1 parent eb62b11 commit bcaaa0e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
java.sourceCompatibility = JavaVersion.VERSION_1_8
22
java.targetCompatibility = JavaVersion.VERSION_1_8
33
rootProject.group = "com.crypticlib"
4-
rootProject.version = "1.13.15.0"
4+
rootProject.version = "1.13.15.1"
55
//全项目重构时更新大版本号
66
//添加模块或有较大更改时更新次版本号
77
//有API变动(新增/删除/更改声明)时更新修订号

platform/bukkit/src/main/java/crypticlib/BukkitPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public abstract class BukkitPlugin extends JavaPlugin {
3333
protected final String defaultConfigFileName = "config.yml";
3434

3535
public BukkitPlugin() {
36+
IOHelper.setMsgSender(BukkitMsgSender.INSTANCE);
3637
pluginScanner.scanJar(this.getFile());
3738
ReflectionHelper.setPluginInstance(this);
3839
CrypticLib.init(new CrypticLibPlugin() {
@@ -51,7 +52,6 @@ public PlatformSide platform() {
5152
return PlatformSide.BUKKIT;
5253
}
5354
});
54-
IOHelper.setMsgSender(BukkitMsgSender.INSTANCE);
5555
runLifeCycleTasks(LifeCycle.INIT);
5656
}
5757

platform/bungee/src/main/java/crypticlib/BungeePlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public abstract class BungeePlugin extends Plugin {
3232
protected final String defaultConfigFileName = "config.yml";
3333

3434
public BungeePlugin() {
35+
IOHelper.setMsgSender(BungeeMsgSender.INSTANCE);
3536
pluginScanner.scanJar(this.getFile());
3637
ReflectionHelper.setPluginInstance(this);
3738
CrypticLib.init(new CrypticLibPlugin() {
@@ -50,7 +51,6 @@ public PlatformSide platform() {
5051
return PlatformSide.BUNGEE;
5152
}
5253
});
53-
IOHelper.setMsgSender(BungeeMsgSender.INSTANCE);
5454
runLifeCycleTasks(LifeCycle.INIT);
5555
}
5656

platform/velocity/src/main/java/crypticlib/VelocityPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public VelocityPlugin(Logger logger, ProxyServer proxyServer, PluginContainer pl
4747
this.proxyServer = proxyServer;
4848
this.pluginContainer = pluginContainer;
4949
this.dataDirectory = dataDirectory;
50+
IOHelper.setMsgSender(VelocityMsgSender.INSTANCE);
5051
File pluginFile = new File(this.getClass().getProtectionDomain().getCodeSource().getLocation().getFile());
5152
pluginScanner.scanJar(pluginFile);
5253
ReflectionHelper.setPluginInstance(this);
@@ -66,7 +67,6 @@ public PlatformSide platform() {
6667
return PlatformSide.VELOCITY;
6768
}
6869
});
69-
IOHelper.setMsgSender(VelocityMsgSender.INSTANCE);
7070
runLifeCycleTasks(LifeCycle.INIT);
7171
}
7272

0 commit comments

Comments
 (0)