Source:
<code>public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException { <START> if (args.length == 1 && (args[0].equals("?") || args[0].equals("-h"))) { <END> sender.sendMessage(new TextComponentString(getHelp())); return; } if (sender.getEntityWorld().isRemote) return; EntityPlayerMP player = args.length < 2 ? getCommandSenderAsPlayer(sender) : getPlayer(server, sender, args[0]); ItemStack held = player.getHeldItemMainhand(); boolean bind = true; if (held.getItem() instanceof IBindable) { Binding binding = ((IBindable) held.getItem()).getBinding(held); if (binding != null) bind = false; if (args.length < 2) if (args.length == 1) if (isBoolean(args[0])) bind = Boolean.parseBoolean(args[0]); else player = getPlayer(server, sender, args[0]); if (bind) { if (binding != null && binding.getOwnerName().equals(player.getName())) { sender.sendMessage(new TextComponentTranslation("commands.bloodmagic.bind.error.ownerEqualsTarget")); return; } binding = new Binding(player.getGameProfile().getId(), player.getGameProfile().getName()); BindableHelper.applyBinding(held, binding); this.player = player; sender.sendMessage(new TextComponentTranslation("commands.bloodmagic.bind.success", getInfo())); } else { if (binding == null) { sender.sendMessage(new TextComponentTranslation("commands.bloodmagic.bind.error.notBound")); } held.getTagCompound().removeTag("binding"); sender.sendMessage(new TextComponentTranslation("commands.bloodmagic.bind.remove.success")); } } else sender.sendMessage(new TextComponentTranslation("commands.bloodmagic.bind.error.notBindable")); }</code><technical_language>h -></technical_language>

Target:
public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException { if (args.length == 1 && (args[0].equals("?") || args[0].equals("help"))) { sender.sendMessage(new TextComponentTranslation(getHelp())); return; } if (sender.getEntityWorld().isRemote) return; EntityPlayerMP player = args.length < 2 ? getCommandSenderAsPlayer(sender) : getPlayer(server, sender, args[0]); ItemStack held = player.getHeldItemMainhand(); boolean bind = true; if (held.getItem() instanceof IBindable) { Binding binding = ((IBindable) held.getItem()).getBinding(held); if (binding != null) bind = false; if (args.length < 2) if (args.length == 1) if (isBoolean(args[0])) bind = Boolean.parseBoolean(args[0]); else player = getPlayer(server, sender, args[0]); if (bind) { if (binding.getOwnerName().equals(player.getName())) { sender.sendMessage(new TextComponentTranslation("commands.bloodmagic.bind.error.ownerEqualsTarget")); return; } binding = new Binding(player.getGameProfile().getId(), player.getGameProfile().getName()); BindableHelper.applyBinding(held, binding); this.player = player; sender.sendMessage(new TextComponentTranslation("commands.bloodmagic.bind.success", getInfo())); } else { if (binding == null) { sender.sendMessage(new TextComponentTranslation("commands.bloodmagic.bind.error.notBound")); } held.getTagCompound().removeTag("binding"); sender.sendMessage(new TextComponentTranslation("commands.bloodmagic.bind.remove.success")); } } else sender.sendMessage(new TextComponentTranslation("commands.bloodmagic.bind.error.notBindable")); }