Remove test server check in AntihackLogger

This commit is contained in:
ArcticZeroo 2017-10-21 11:42:42 -04:00 committed by Alexander Meech
parent a251566160
commit ccfe7c41d7

View File

@ -75,30 +75,27 @@ public class AntihackLogger extends MiniPlugin
public void addCommands()
{
if (UtilServer.isTestServer())
addCommand(new CommandBase<AntihackLogger>(this, Perm.SAVE_METADATA_COMMAND, "savemetadata")
{
addCommand(new CommandBase<AntihackLogger>(this, Perm.SAVE_METADATA_COMMAND, "savemetadata")
@Override
public void Execute(Player caller, String[] args)
{
@Override
public void Execute(Player caller, String[] args)
if (args.length == 1)
{
if (args.length == 1)
Player player = Bukkit.getPlayer(args[0]);
if (player != null)
{
Player player = Bukkit.getPlayer(args[0]);
if (player != null)
JsonObject custom = new JsonObject();
custom.addProperty("is-test-metadata", true);
String id = AntiHack.generateId();
saveMetadata(player, id, () ->
{
JsonObject custom = new JsonObject();
custom.addProperty("is-test-metadata", true);
String id = AntiHack.generateId();
saveMetadata(player, id, () ->
{
UtilPlayer.message(caller, F.main(getName(), "Saved metadata for " + player.getName() + " with id " + id));
}, custom);
}
UtilPlayer.message(caller, F.main(getName(), "Saved metadata for " + player.getName() + " with id " + id));
}, custom);
}
}
});
}
}
});
}
@EventHandler