mirror of
https://e.coding.net/circlecloud/MiaoLobby.git
synced 2024-11-17 20:08:46 +00:00
fix: 调整混淆配置文件 保留事件
Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
parent
a000e3d411
commit
5bb73550c5
@ -17,16 +17,19 @@
|
||||
-keepattributes **
|
||||
|
||||
# -----保护所有实体中的字段名称-----
|
||||
-keepclassmembers class * implements java.io.Serializable {<fields>;}
|
||||
-keepclassmembers class * implements java.io.Serializable { <fields>; }
|
||||
|
||||
# -----保护监听方法不被清理-----
|
||||
-keepclassmembers class * implements org.bukkit.event.Listener {
|
||||
@org.bukkit.event.EventHandler <methods>;
|
||||
}
|
||||
-keepclassmembers class * implements net.md_5.bungee.api.plugin.Listener {
|
||||
@net.md_5.bungee.event.EventHandler <methods>;
|
||||
@net.md_5.bungee.event.EventHandler <methods>;
|
||||
}
|
||||
|
||||
# -----保护继承事件不被清理-----
|
||||
-keep class ** extends org.bukkit.event.Event {*;}
|
||||
|
||||
# -----保护枚举方法的完整性-----
|
||||
-keepclassmembers enum * {
|
||||
public static **[] values();
|
||||
@ -35,7 +38,8 @@
|
||||
|
||||
# -----保护配置注入不被清理-----
|
||||
-keepclassmembers class * extends **.config.inject.Inject** {
|
||||
<fields>;
|
||||
<fields>;
|
||||
public <init>(org.bukkit.configuration.ConfigurationSection);
|
||||
}
|
||||
|
||||
# -----保护注解命令方法不被清理-----
|
||||
|
Loading…
Reference in New Issue
Block a user