1
0
mirror of https://e.coding.net/circlecloud/RocketJump.git synced 2024-12-26 20:38:48 +00:00

feat: 更新混淆 修复命令失效问题

This commit is contained in:
502647092 2016-06-01 20:46:10 +08:00
parent 5663cb7737
commit 3e67c29eae
7 changed files with 114 additions and 25 deletions

65
class.dict Normal file
View File

@ -0,0 +1,65 @@
IIIIiI
IIiIiI
iiIIiI
Iiiiii
IIIIIi
IiIiII
iiIIIi
iIIIii
iIiiIi
iiiIiI
IiiIii
iIiiiI
iiiIIi
IIiIII
IIIIii
IIIiii
iiiiII
iIIiII
IIiiII
iiIIii
IiiIII
iIiIII
IiIIii
iiIiiI
iIiiII
IiiIiI
iiiIII
IIiIIi
iIiIiI
iiIiii
IiIiii
IiIIiI
IiiIIi
IiIIIi
IIiiIi
iIIiIi
iIIIII
IIIiIi
iiiiiI
iIiIIi
IIIiiI
iiiiIi
iiIiIi
IIiiiI
IiiiII
iIIiii
iIiIii
IiIiiI
IIiIii
IiIIII
IIIIII
iIIIIi
IIIiII
iiiiii
IiiiiI
IiIiIi
iiiIii
iIIIiI
iIIiiI
iIiiii
iiIiII
IIiiii
iiIIII
IiiiIi
llllll

24
obf.dict Normal file
View File

@ -0,0 +1,24 @@
if
try
for
int
new
true
null
this
else
void
enum
final
false
class
catch
import
double
public
static
boolean
package
finally
private
protected

16
pom.xml
View File

@ -1,10 +1,11 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.citycraft</groupId>
<groupId>pw.yumc</groupId>
<artifactId>RocketJump</artifactId>
<version>1.2</version>
<version>1.3.1</version>
<name>RocketJump</name>
<description>火箭跳跃 特效Duang...</description>
<build>
<finalName>${project.name}</finalName>
<resources>
@ -64,7 +65,8 @@
<configuration>
<options>
<option>-repackageclasses ${project.groupId}.${project.artifactId}</option>
<option>-keep class ${project.groupId}.${project.artifactId}.${project.artifactId}</option>
<option>-keep class
${project.groupId}.${project.artifactId}.${project.artifactId}</option>
</options>
<libs>
<lib>${java.home}/lib/rt.jar</lib>
@ -74,7 +76,6 @@
</plugins>
</build>
<properties>
<jenkins.url>http://hs.citycraft.cn:8080</jenkins.url>
<update.description>&amp;c修复命令部分代码...</update.description>
<update.changes></update.changes>
<env.GIT_COMMIT>DEBUG</env.GIT_COMMIT>
@ -85,17 +86,13 @@
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/groups/public/</url>
</repository>
<repository>
<id>citycraft-repo</id>
<url>${jenkins.url}/plugin/repository/everything/</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<type>jar</type>
<version>1.8.8-R0.1-SNAPSHOT</version>
<version>1.9-R0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>cn.citycraft</groupId>
@ -104,5 +101,4 @@
<version>1.0</version>
</dependency>
</dependencies>
<description>火箭跳跃 特效Duang...</description>
</project>

View File

@ -7,7 +7,12 @@
# -----混淆时应用侵入式重载-----
-overloadaggressively
# -----启用混淆字典-----
-obfuscationdictionary obf.dict
-classobfuscationdictionary class.dict
-packageobfuscationdictionary class.dict
# -----保留所有属性
-keepattributes **
@ -18,18 +23,24 @@
-keepclassmembers class * implements java.io.Serializable { <fields>; }
# -----保护监听方法不被清理-----
-keepclassmembers class * implements org.bukkit.event.Listener
{
-keepclassmembers class * implements org.bukkit.event.Listener {
@org.bukkit.event.EventHandler <methods>;
}
# -----保护注解命令方法不被清理-----
-keepclassmembers class **.commands.HandlerCommand { <methods>; }
-keepclassmembers class * implements **.commands.HandlerCommands
{
-keepclassmembers class * implements **.commands.HandlerCommands {
@**.commands.HandlerCommand <methods>;
@**.commands.HandlerTabComplete <methods>;
}
# -----保护注解NotProguard标记-----
-keep class **.NotProguard
-keep @**.NotProguard class * {*;}
-keepclassmembers class * {
@**.NotProguard <fields>;
@**.NotProguard <methods>;
}
# -----保护命令解析正常-----
-keepnames class * extends **.commands.BaseCommand

View File

@ -1,9 +1,8 @@
package cn.citycraft.RocketJump;
package pw.yumc.RocketJump;
import java.util.ArrayList;
import java.util.List;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import cn.citycraft.PluginHelper.commands.InvokeSubCommand;
@ -19,11 +18,6 @@ public class RocketJump extends JavaPlugin {
static RocketJump instence;
static List<String> Dante = new ArrayList<String>();
@Override
public void onDisable() {
Bukkit.getConsoleSender().sendMessage("§4RocketJump已卸载...");
}
@Override
public void onEnable() {
instence = this;
@ -31,7 +25,6 @@ public class RocketJump extends JavaPlugin {
isc.registerCommands(new RocketJumpCommands());
isc.setAllCommandOnlyPlayer(true);
getServer().getPluginManager().registerEvents(new RocketJumpListen(), this);
Bukkit.getConsoleSender().sendMessage("§aRocketJump已加载...");
new VersionChecker(this);
}

View File

@ -1,4 +1,4 @@
package cn.citycraft.RocketJump;
package pw.yumc.RocketJump;
import org.bukkit.GameMode;
import org.bukkit.command.Command;

View File

@ -1,4 +1,4 @@
package cn.citycraft.RocketJump;
package pw.yumc.RocketJump;
import java.util.ArrayList;
import java.util.List;